FrostIce commited on
Commit
8b454e9
·
verified ·
1 Parent(s): de5b54a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- bot_message = f"Ошибка: {str(e)}"
186
- return history + [[message, bot_message]]
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: