Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,18 +154,7 @@ title = """# 🐑 NutriAssist 🌱"""
|
|
| 154 |
with gr.Blocks() as demo:
|
| 155 |
chatbot = gr.Chatbot(label="NutriAssist")
|
| 156 |
chatbot.like(vote, None, None)
|
| 157 |
-
|
| 158 |
-
# msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 159 |
-
# checkboxes = gr.CheckboxGroup(
|
| 160 |
-
# choices=["Show fun facts", "Explain why", "Summarize rules"],
|
| 161 |
-
# label="Customize your response"
|
| 162 |
-
# )
|
| 163 |
-
# with gr.Row():
|
| 164 |
-
# msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 165 |
-
# checkboxes2 = gr.CheckboxGroup(
|
| 166 |
-
# choices=["Show fun facts", "Explain why", "Summarize rules"],
|
| 167 |
-
# label="Customize your response"
|
| 168 |
-
# )
|
| 169 |
|
| 170 |
with gr.Row(scale=1):
|
| 171 |
gr.Image(
|
|
@@ -173,6 +162,7 @@ with gr.Blocks() as demo:
|
|
| 173 |
show_label=False,
|
| 174 |
show_share_button = False,
|
| 175 |
show_download_button = False)
|
|
|
|
| 176 |
with gr.Row(scale=2):
|
| 177 |
with gr.Column(scale=1):
|
| 178 |
gr.Markdown(title)
|
|
@@ -188,6 +178,18 @@ with gr.Blocks() as demo:
|
|
| 188 |
show_download_button = False)
|
| 189 |
|
| 190 |
with gr.Column(scale=2):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
gr.ChatInterface(respond, type="messages")
|
| 192 |
|
| 193 |
send_btn = gr.Button("Send")
|
|
|
|
| 154 |
with gr.Blocks() as demo:
|
| 155 |
chatbot = gr.Chatbot(label="NutriAssist")
|
| 156 |
chatbot.like(vote, None, None)
|
| 157 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
with gr.Row(scale=1):
|
| 160 |
gr.Image(
|
|
|
|
| 162 |
show_label=False,
|
| 163 |
show_share_button = False,
|
| 164 |
show_download_button = False)
|
| 165 |
+
|
| 166 |
with gr.Row(scale=2):
|
| 167 |
with gr.Column(scale=1):
|
| 168 |
gr.Markdown(title)
|
|
|
|
| 178 |
show_download_button = False)
|
| 179 |
|
| 180 |
with gr.Column(scale=2):
|
| 181 |
+
with gr.Row():
|
| 182 |
+
msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 183 |
+
checkboxes = gr.CheckboxGroup(
|
| 184 |
+
choices=["Show fun facts", "Explain why", "Summarize rules"],
|
| 185 |
+
label="Customize your response"
|
| 186 |
+
)
|
| 187 |
+
with gr.Row():
|
| 188 |
+
msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 189 |
+
checkboxes2 = gr.CheckboxGroup(
|
| 190 |
+
choices=["Show fun facts", "Explain why", "Summarize rules"],
|
| 191 |
+
label="Customize your response"
|
| 192 |
+
)
|
| 193 |
gr.ChatInterface(respond, type="messages")
|
| 194 |
|
| 195 |
send_btn = gr.Button("Send")
|