Bernd-Ebenhoch commited on
Commit
575b44e
·
verified ·
1 Parent(s): ece1eb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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'])