Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ with gr.Blocks(theme="soft", title="COLIN") as iface:
|
|
40 |
label="Select Language"
|
41 |
)
|
42 |
|
43 |
-
chatbot = gr.Chatbot(label="Chat")
|
44 |
textbox = gr.Textbox(placeholder="Enter your message here...")
|
45 |
|
46 |
with gr.Row():
|
@@ -61,4 +61,7 @@ with gr.Blocks(theme="soft", title="COLIN") as iface:
|
|
61 |
fn=lambda: [],
|
62 |
inputs=[],
|
63 |
outputs=[chatbot]
|
64 |
-
)
|
|
|
|
|
|
|
|
40 |
label="Select Language"
|
41 |
)
|
42 |
|
43 |
+
chatbot = gr.Chatbot(label="Chat", type="messages") # Изменено здесь
|
44 |
textbox = gr.Textbox(placeholder="Enter your message here...")
|
45 |
|
46 |
with gr.Row():
|
|
|
61 |
fn=lambda: [],
|
62 |
inputs=[],
|
63 |
outputs=[chatbot]
|
64 |
+
)
|
65 |
+
|
66 |
+
# ЭТА СТРОКА ЗАСТАВИТ ПРИЛОЖЕНИЕ РАБОТАТЬ
|
67 |
+
iface.launch()
|