Update app.py
Browse files
app.py
CHANGED
|
@@ -182,8 +182,8 @@ def respond(message, history):
|
|
| 182 |
bot_message = strip_citations(f"{strip_md_refs(responsed.choices[0].message.content)}")
|
| 183 |
|
| 184 |
except Exception as e:
|
| 185 |
-
|
| 186 |
-
|
| 187 |
|
| 188 |
# --- Интерфейс ---
|
| 189 |
with gr.Blocks(title="ESP Brain") as demo:
|
|
|
|
| 182 |
bot_message = strip_citations(f"{strip_md_refs(responsed.choices[0].message.content)}")
|
| 183 |
|
| 184 |
except Exception as e:
|
| 185 |
+
bot_message = f"Ошибка: {str(e)}"
|
| 186 |
+
return history + [[message, bot_message]]
|
| 187 |
|
| 188 |
# --- Интерфейс ---
|
| 189 |
with gr.Blocks(title="ESP Brain") as demo:
|