test-volumes / app.py
Wauplin's picture
Wauplin HF Staff
Update app.py
53a0ef0 verified
raw
history blame contribute delete
268 Bytes
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()