Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,12 +19,21 @@ def respond(message, history):
|
|
| 19 |
|
| 20 |
return response["choices"][0]["message"]["content"].strip()
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
with gr.Blocks() as chatbot:
|
| 23 |
gr.Image(
|
| 24 |
value="NutriAssistBanner.png",
|
| 25 |
show_label=False,
|
| 26 |
show_share_button = False,
|
| 27 |
show_download_button = False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
gr.ChatInterface(respond, type="messages")
|
| 29 |
|
| 30 |
chatbot.launch()
|
|
|
|
| 19 |
|
| 20 |
return response["choices"][0]["message"]["content"].strip()
|
| 21 |
|
| 22 |
+
about_text = """##Use this chatbot to plan healthy meals and try new recipes!"""
|
| 23 |
+
|
| 24 |
+
title = """#🐑 NutriAssist 🌱"""
|
| 25 |
+
|
| 26 |
with gr.Blocks() as chatbot:
|
| 27 |
gr.Image(
|
| 28 |
value="NutriAssistBanner.png",
|
| 29 |
show_label=False,
|
| 30 |
show_share_button = False,
|
| 31 |
show_download_button = False)
|
| 32 |
+
with gr.Row(scale=2):
|
| 33 |
+
with gr.Column():
|
| 34 |
+
gr.Markdown(title)
|
| 35 |
+
gr.Image("NutriAssistLogo.png")
|
| 36 |
+
gr.Markdown(about_text)
|
| 37 |
gr.ChatInterface(respond, type="messages")
|
| 38 |
|
| 39 |
chatbot.launch()
|