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