sharsh02 commited on
Commit
186a55d
1 Parent(s): 8383905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 {'text': output, 'file': None}
572
  except StopAsyncIteration:
573
- yield {'text':"Sorry, could you provide more details to clarify your query", 'file':None}
574
  except Exception as e:
575
- yield {'text':f"Sorry, your query couldn't be processed. Retry with correct name of stock - An error occurred: {e}", 'file': None}
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