joanhightech commited on
Commit
8881aba
·
verified ·
1 Parent(s): a66878c

JM: initial commit

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def salut(nom):
4
+ with open('data.txt', 'w') as file:
5
+ file.write(f"Nom: {nom}\n")
6
+
7
+ demo = gr.Interface(fn=salut, inputs="text", outputs="text")
8
+ demo.launch(share=True, debug=True)