trashchenkov commited on
Commit
837e507
·
verified ·
1 Parent(s): 9d3d816

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,10 +62,10 @@ def get_context(contexts):
62
 
63
  def process_input(text):
64
  response = retrieval_chain.invoke({"input": text})
65
- save_json(response)
66
  #bot.send_message(user_id, resp2msg(response))
67
  youtube_links = get_yt_links(response['context'])
68
  context = get_context(response['context'])
 
69
  return response['answer'], context, youtube_links[0], youtube_links[1], youtube_links[2]
70
 
71
  giga = os.getenv('GIGA')
 
62
 
63
  def process_input(text):
64
  response = retrieval_chain.invoke({"input": text})
 
65
  #bot.send_message(user_id, resp2msg(response))
66
  youtube_links = get_yt_links(response['context'])
67
  context = get_context(response['context'])
68
+ save_json(response)
69
  return response['answer'], context, youtube_links[0], youtube_links[1], youtube_links[2]
70
 
71
  giga = os.getenv('GIGA')