testChat / app.py
AdityaBolt
Update app.py
7315ef3 verified
raw
history blame
509 Bytes
import gradio as gr
def write_letter(name):
letter = f"Dear {name},\n\n" \
"I hope this note finds you well. Your smile brightens everyone's day, " \
"and I just wanted to take a moment to tell you how much you mean to those around you. " \
"Keep being your awesome self!\n\n" \
"With lots of love and a huge hug,\n" \
"- Your Friend"
return letter
iface = gr.Interface(fn=write_letter, inputs="text", outputs="text")
iface.launch()