Pash1986 commited on
Commit
98a71ee
·
verified ·
1 Parent(s): 4335e3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,9 +46,9 @@ def get_movies(message, history):
46
 
47
  print_llm_text = chain.invoke({"input": retrun_text})
48
 
49
- for i in range(len(retrun_text['content'])):
50
  time.sleep(0.05)
51
- yield "Found: " + "\n\n" + retrun_text['content'][: i+1]
52
  # except:
53
  # yield "Please clone the repo and add your open ai key as well as your MongoDB Atlas UR in the Secret Section of you Space\n OPENAI_API_KEY (your Open AI key) and MONGODB_ATLAS_CLUSTER_URI (0.0.0.0/0 whitelisted instance with Vector index created) \n\n For more information : https://mongodb.com/products/platform/atlas-vector-search"
54
 
 
46
 
47
  print_llm_text = chain.invoke({"input": retrun_text})
48
 
49
+ for i in range(len(print_llm_text['content'])):
50
  time.sleep(0.05)
51
+ yield "Found: " + "\n\n" + print_llm_text['content'][: i+1]
52
  # except:
53
  # yield "Please clone the repo and add your open ai key as well as your MongoDB Atlas UR in the Secret Section of you Space\n OPENAI_API_KEY (your Open AI key) and MONGODB_ATLAS_CLUSTER_URI (0.0.0.0/0 whitelisted instance with Vector index created) \n\n For more information : https://mongodb.com/products/platform/atlas-vector-search"
54