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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,11 +1,11 @@
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,4 +13,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
 
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/'])