Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -397,7 +397,6 @@ chat_interface_stream = gr.ChatInterface(fn=invoke,
|
|
| 397 |
clear_btn="🗑️ Verlauf löschen",
|
| 398 |
submit_btn = "Abschicken",
|
| 399 |
description = description,
|
| 400 |
-
inputs=[gr.inputs.Textbox(lines=2, placeholder="Geben Sie Ihren Prompt hier ein..."), reference_image],
|
| 401 |
)
|
| 402 |
|
| 403 |
|
|
@@ -417,6 +416,17 @@ with gr.Blocks() as demo:
|
|
| 417 |
</div>
|
| 418 |
""")
|
| 419 |
with gr.Tab("Chatbot"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
with gr.Row():
|
| 421 |
chatbot_stream.like(vote, None, None)
|
| 422 |
chat_interface_stream.queue().launch()
|
|
@@ -433,4 +443,4 @@ with gr.Blocks() as demo:
|
|
| 433 |
)
|
| 434 |
|
| 435 |
|
| 436 |
-
#demo.queue().launch()
|
|
|
|
| 397 |
clear_btn="🗑️ Verlauf löschen",
|
| 398 |
submit_btn = "Abschicken",
|
| 399 |
description = description,
|
|
|
|
| 400 |
)
|
| 401 |
|
| 402 |
|
|
|
|
| 416 |
</div>
|
| 417 |
""")
|
| 418 |
with gr.Tab("Chatbot"):
|
| 419 |
+
iface = gr.Interface(
|
| 420 |
+
fn=handle_input,
|
| 421 |
+
inputs=[reference_image, chat_interface_stream],
|
| 422 |
+
outputs=chat_interface_stream,
|
| 423 |
+
title="Chatbot mit Bildeingabe",
|
| 424 |
+
description="Laden Sie ein Bild hoch oder interagieren Sie über den Chat."
|
| 425 |
+
)
|
| 426 |
+
|
| 427 |
+
iface.launch()
|
| 428 |
+
|
| 429 |
+
"""
|
| 430 |
with gr.Row():
|
| 431 |
chatbot_stream.like(vote, None, None)
|
| 432 |
chat_interface_stream.queue().launch()
|
|
|
|
| 443 |
)
|
| 444 |
|
| 445 |
|
| 446 |
+
#demo.queue().launch() """
|