Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -349,7 +349,7 @@ def respond(message, history, model, temperature, num_calls, use_web_search, sel
|
|
349 |
# Use Hugging Face API
|
350 |
for partial_response in get_response_from_pdf(message, model, selected_docs, num_calls=num_calls, temperature=temperature):
|
351 |
first_line = partial_response.split('\n')[0] if partial_response else ''
|
352 |
-
logging.info(f"Generated Response (first line): {first_line}")
|
353 |
yield partial_response
|
354 |
except Exception as e:
|
355 |
logging.error(f"Error with {model}: {str(e)}")
|
|
|
349 |
# Use Hugging Face API
|
350 |
for partial_response in get_response_from_pdf(message, model, selected_docs, num_calls=num_calls, temperature=temperature):
|
351 |
first_line = partial_response.split('\n')[0] if partial_response else ''
|
352 |
+
# logging.info(f"Generated Response (first line): {first_line}")
|
353 |
yield partial_response
|
354 |
except Exception as e:
|
355 |
logging.error(f"Error with {model}: {str(e)}")
|