Spaces:
Sleeping
Sleeping
fixed
Browse files
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 |
-
|
|
|
|
| 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, ""])
|