Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -469,7 +469,7 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search, c
|
|
469 |
|
470 |
return answer
|
471 |
|
472 |
-
|
473 |
for attempt in range(max_attempts):
|
474 |
try:
|
475 |
if database is None:
|
|
|
469 |
|
470 |
return answer
|
471 |
|
472 |
+
else: # PDF document chat
|
473 |
for attempt in range(max_attempts):
|
474 |
try:
|
475 |
if database is None:
|