Spaces:
Sleeping
Sleeping
Jm: fix return issue
Browse files
app.py
CHANGED
|
@@ -4,5 +4,7 @@ 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
|
|
|
|
| 4 |
with open('data.txt', 'w') as file:
|
| 5 |
file.write(f"Nom: {nom}\n")
|
| 6 |
|
| 7 |
+
return "Salut " + nom
|
| 8 |
+
|
| 9 |
demo = gr.Interface(fn=salut, inputs="text", outputs="text")
|
| 10 |
+
demo.launch(share=True)
|