bhavya-k commited on
Commit
d28ec71
·
verified ·
1 Parent(s): c7c8352

try top image

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -114,6 +114,16 @@ def respond(message,history):
114
 
115
  #msg.submit(respond, [msg, chatbot], [msg, chatbot])
116
  #send.click(respond, [msg, chatbot], [msg, chatbot])
117
- chat_interface = gr.ChatInterface(fn=respond, title="🎁 Introducing WrapIT!", theme='hmb/amethyst', description=" **WrapIT** helps users find personalized gift ideas and craft thoughtful card messages by inputting details like the recipient's interests, celebration type, and budget ✨ *All you have to do is wrap it.*")
118
- chat_interface.launch()
 
 
 
 
 
 
 
 
 
119
 
 
 
114
 
115
  #msg.submit(respond, [msg, chatbot], [msg, chatbot])
116
  #send.click(respond, [msg, chatbot], [msg, chatbot])
117
+
118
+ with gr.Blocks(theme='hmb/amethyst') as demo:
119
+ # Top image
120
+ gr.Image(value="wrap_it_top_image.png", show_label=False, elem_id="top-image")
121
+
122
+ # Title and description
123
+ gr.Markdown("## 🎁 Introducing WrapIT!")
124
+ gr.Markdown("**WrapIT** helps users find personalized gift ideas and craft thoughtful card messages by inputting details like the recipient's interests, celebration type, and budget ✨ *All you have to do is wrap it.*")
125
+
126
+ # Chat interface
127
+ gr.ChatInterface(fn=respond)
128
 
129
+ demo.launch()