Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ vq = VectaraQuery(cfg.api_key, cfg.customer_id, cfg.corpus_ids, cfg.prompt_name)
|
|
28 |
def respond(message, history):
|
29 |
if cfg.streaming:
|
30 |
# Call stream response and stream output
|
31 |
-
logging.debug(f'Streaming query called with message {message}')
|
32 |
stream = vq.submit_query_streaming(message)
|
33 |
|
34 |
|
@@ -38,9 +37,7 @@ def respond(message, history):
|
|
38 |
yield outputs
|
39 |
else:
|
40 |
# Call non-stream response and return message output
|
41 |
-
logging.debug(f'Regular query called with message {message}')
|
42 |
response = vq.submit_query(message)
|
43 |
-
logging.debug(f'Response message received: {response}')
|
44 |
yield response
|
45 |
|
46 |
cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
|
|
|
28 |
def respond(message, history):
|
29 |
if cfg.streaming:
|
30 |
# Call stream response and stream output
|
|
|
31 |
stream = vq.submit_query_streaming(message)
|
32 |
|
33 |
|
|
|
37 |
yield outputs
|
38 |
else:
|
39 |
# Call non-stream response and return message output
|
|
|
40 |
response = vq.submit_query(message)
|
|
|
41 |
yield response
|
42 |
|
43 |
cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
|