Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from pathlib import Path | |
| def greet(name): | |
| value = "Hello " + name + "!!" | |
| with Path("/data/logs.txt").open("a") as f: | |
| f.write(value + "\n") | |
| return value | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch() |