Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def форматувати_історію_чату(повідомлення: lis
|
|
22 |
})
|
23 |
return форматована_історія
|
24 |
|
25 |
-
def транслювати_відповідь
|
26 |
"""Працюю"""
|
27 |
|
28 |
if not повідомлення_користувача.strip():
|
@@ -133,7 +133,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
133 |
outputs=[input_box, chatbot],
|
134 |
queue=False
|
135 |
).then(
|
136 |
-
транслювати_
|
137 |
inputs=[msg_store, chatbot],
|
138 |
outputs=chatbot
|
139 |
)
|
|
|
22 |
})
|
23 |
return форматована_історія
|
24 |
|
25 |
+
def транслювати_відповідь(повідомлення_користувача: str, повідомлення: list) -> Iterator[list]:
|
26 |
"""Працюю"""
|
27 |
|
28 |
if not повідомлення_користувача.strip():
|
|
|
133 |
outputs=[input_box, chatbot],
|
134 |
queue=False
|
135 |
).then(
|
136 |
+
транслювати_відповідь,
|
137 |
inputs=[msg_store, chatbot],
|
138 |
outputs=chatbot
|
139 |
)
|