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