trinity-tandon commited on
Commit
af2a681
·
verified ·
1 Parent(s): 791c5f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -21
app.py CHANGED
@@ -93,28 +93,27 @@ def respond(message,history):
93
 
94
 
95
 
96
- with gr.Blocks(theme='hmb/amethyst') as demo:
97
- with gr.Row(equal_height=True):
98
- with gr.Column(scale=10):
99
- gr.Markdown(
100
- """
101
- # 🎁 Introducing WrapIT!
102
- **WrapIT** helps users find personalized gift ideas and craft thoughtful card messages
103
- by inputting details like the recipient's interests, celebration type, and budget.
104
-
105
- ✨ *All you have to do is wrap it.*
106
- """
107
- )
108
- gr.ChatInterface(respond, type='messages')
109
 
110
 
111
 
112
- chatbot = gr.Chatbot()
113
- msg = gr.Textbox(placeholder="Say hi to WrapIT here!", label="Message")
114
- send = gr.Button("Send")
115
-
116
- msg.submit(respond, [msg, chatbot], [msg, chatbot])
117
- send.click(respond, [msg, chatbot], [msg, chatbot])
118
-
119
- demo.launch()
120
 
 
93
 
94
 
95
 
96
+ #with gr.Blocks(theme='hmb/amethyst') as demo:
97
+ # with gr.Row(equal_height=True):
98
+ # with gr.Column(scale=10):
99
+ # """
100
+ # # 🎁 Introducing WrapIT!
101
+ # **WrapIT** helps users find personalized gift ideas and craft thoughtful card messages
102
+ # by inputting details like the recipient's interests, celebration type, and budget.
103
+ #
104
+ # ✨ *All you have to do is wrap it.*
105
+ # """
106
+ # )
107
+ # gr.ChatInterface(respond, type='messages')
 
108
 
109
 
110
 
111
+ #chatbot = gr.Chatbot()
112
+ #msg = gr.Textbox(placeholder="Say hi to WrapIT here!", label="Message")
113
+ #send = gr.Button("Send")
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="🎁 WrapIT!", description="WrapIT helps you find great gift ideas based on your input.")
118
+ chat_interface.launch()
119