Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -255,7 +255,7 @@ def respond(message, history, model, temperature, num_calls, use_web_search, sel
|
|
255 |
for main_content, sources in get_response_with_search(message, model, num_calls=num_calls, temperature=temperature):
|
256 |
response = f"{main_content}\n\n{sources}"
|
257 |
first_line = response.split('\n')[0] if response else ''
|
258 |
-
logging.info(f"Generated Response (first line): {first_line}")
|
259 |
yield response
|
260 |
else:
|
261 |
embed = get_embeddings()
|
@@ -491,7 +491,7 @@ demo = gr.ChatInterface(
|
|
491 |
document_selector # Add the document selector to the chat interface
|
492 |
],
|
493 |
title="AI-powered Web Search and PDF Chat Assistant",
|
494 |
-
description="Chat with your PDFs or use web search to answer questions",
|
495 |
theme=gr.themes.Soft(
|
496 |
primary_hue="orange",
|
497 |
secondary_hue="amber",
|
|
|
255 |
for main_content, sources in get_response_with_search(message, model, num_calls=num_calls, temperature=temperature):
|
256 |
response = f"{main_content}\n\n{sources}"
|
257 |
first_line = response.split('\n')[0] if response else ''
|
258 |
+
# logging.info(f"Generated Response (first line): {first_line}")
|
259 |
yield response
|
260 |
else:
|
261 |
embed = get_embeddings()
|
|
|
491 |
document_selector # Add the document selector to the chat interface
|
492 |
],
|
493 |
title="AI-powered Web Search and PDF Chat Assistant",
|
494 |
+
description="Chat with your PDFs or use web search to answer questions (Please use toggle under Additional Inputs to swithc between PDF and Web Search, Default Value Web Search)",
|
495 |
theme=gr.themes.Soft(
|
496 |
primary_hue="orange",
|
497 |
secondary_hue="amber",
|