AdityaBolt commited on
Commit
cacbb7e
·
verified ·
1 Parent(s): e523d5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -1,7 +1,17 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
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()