Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
-
with open('
|
| 5 |
file.write(name + "\n")
|
| 6 |
|
| 7 |
|
| 8 |
-
with open('
|
| 9 |
a = file.read()
|
| 10 |
|
| 11 |
|
|
@@ -13,4 +13,4 @@ def greet(name):
|
|
| 13 |
|
| 14 |
|
| 15 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 16 |
-
demo.launch(allowed_paths=['/
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
+
with open('static/database.csv','a') as file:
|
| 5 |
file.write(name + "\n")
|
| 6 |
|
| 7 |
|
| 8 |
+
with open('static/database.csv','r') as file:
|
| 9 |
a = file.read()
|
| 10 |
|
| 11 |
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 16 |
+
demo.launch(allowed_paths=['static/'])
|