Spaces:
Running
Running
Commit
·
c743533
1
Parent(s):
90193cd
add requiretment
Browse files
app.py
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
# os.system('pip install ontogpt')
|
4 |
-
|
5 |
import gradio as gr
|
6 |
|
7 |
def greet(name):
|
8 |
with open('./haha.txt', 'w') as f:
|
9 |
f.write(name)
|
10 |
-
|
|
|
|
|
11 |
|
12 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
13 |
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(name):
|
4 |
with open('./haha.txt', 'w') as f:
|
5 |
f.write(name)
|
6 |
+
|
7 |
+
|
8 |
+
return "=======have you saved " + name + "?"
|
9 |
|
10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
iface.launch()
|