sharsh02 commited on
Commit
e2649a3
1 Parent(s): 3375213

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -485,8 +485,16 @@ def insert_in_db(query, ticker_financials, context_files, ticker_stats, reports,
485
  logging.warning("some error occured in saving data to db %s", e)
486
  return None
487
 
488
- def generate_final_response(prompt, history, context_files=[], ticker_stats=[], reports=[], ticker_financials=[], news_link=[], earning_link=[], news_googles=[]):
489
  global display_ticker
 
 
 
 
 
 
 
 
490
  generate_kwargs = dict(temperature=0.05,max_new_tokens=2048,top_p=0.99,repetition_penalty=1.0,do_sample=False,seed=42)
491
  todays_date = today.strftime('%d%B%Y')
492
  question = format_prompt(prompt, history)
 
485
  logging.warning("some error occured in saving data to db %s", e)
486
  return None
487
 
488
+ def generate_final_response(prompt, history):
489
  global display_ticker
490
+
491
+ context_files=[]
492
+ ticker_stats=[]
493
+ reports=[]
494
+ ticker_financials=[]
495
+ news_link=[]
496
+ news_googles=[]
497
+
498
  generate_kwargs = dict(temperature=0.05,max_new_tokens=2048,top_p=0.99,repetition_penalty=1.0,do_sample=False,seed=42)
499
  todays_date = today.strftime('%d%B%Y')
500
  question = format_prompt(prompt, history)