ErNewdev0 commited on
Commit
bf30b01
·
verified ·
1 Parent(s): 038ccc8
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -339,7 +339,8 @@ def create_ui():
339
 
340
  async def handle_chat(message, history, provider_choice, model_name, xai_key, gemini_key):
341
  if not analyzer.current_repo:
342
- return history + [[message, "⚠️ Mohon clone repository terlebih dahulu sebelum mengajukan pertanyaan."]]
 
343
 
344
  history = history or []
345
  history.append([message, ""])
 
339
 
340
  async def handle_chat(message, history, provider_choice, model_name, xai_key, gemini_key):
341
  if not analyzer.current_repo:
342
+ yield history + [[message, "⚠️ Mohon clone repository terlebih dahulu sebelum mengajukan pertanyaan."]]
343
+ return
344
 
345
  history = history or []
346
  history.append([message, ""])