Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -568,12 +568,11 @@ def generate_final_response(prompt, history, context_files=[], ticker_stats=[],
|
|
568 |
output = ""
|
569 |
for response in stream:
|
570 |
output += response.token.text
|
571 |
-
yield
|
572 |
except StopAsyncIteration:
|
573 |
-
yield
|
574 |
except Exception as e:
|
575 |
-
yield
|
576 |
-
|
577 |
|
578 |
theme ="JohnSmith9982/small_and_pretty"
|
579 |
|
|
|
568 |
output = ""
|
569 |
for response in stream:
|
570 |
output += response.token.text
|
571 |
+
yield output
|
572 |
except StopAsyncIteration:
|
573 |
+
yield "Sorry, could you provide more details to clarify your query"
|
574 |
except Exception as e:
|
575 |
+
yield f"Sorry, your query couldn't be processed. Retry with correct name of stock - An error occurred: {e}"
|
|
|
576 |
|
577 |
theme ="JohnSmith9982/small_and_pretty"
|
578 |
|