Spaces:
Runtime error
Runtime error
AdityaBolt commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def write_letter(name):
|
| 4 |
+
# Creating a cute and personalized letter
|
| 5 |
+
letter = f"Dear {name},\n\n" \
|
| 6 |
+
"I hope this note finds you well. Your smile brightens everyone's day, " \
|
| 7 |
+
"and I just wanted to take a moment to tell you how much you mean to those around you. " \
|
| 8 |
+
"Keep being your awesome self!\n\n" \
|
| 9 |
+
"With lots of love and a huge hug,\n" \
|
| 10 |
+
"- Your Friend"
|
| 11 |
+
return letter
|
| 12 |
|
| 13 |
+
# Setting up the Gradio interface
|
| 14 |
+
iface = gr.Interface(fn=write_letter, inputs="text", outputs="text")
|
| 15 |
+
|
| 16 |
+
# Launching the interface
|
| 17 |
iface.launch()
|