DeepVen commited on
Commit
8282916
1 Parent(s): 8af8d67

Upload 2 files

Browse files
Files changed (2) hide show
  1. Index.py +11 -1
  2. requirements.txt +2 -1
Index.py CHANGED
@@ -130,4 +130,14 @@ def rag( question: str):
130
  return {"question": question, "answer": response['result']}
131
 
132
 
133
- initialize_vectorstore()
 
 
 
 
 
 
 
 
 
 
 
130
  return {"question": question, "answer": response['result']}
131
 
132
 
133
+ initialize_vectorstore()
134
+
135
+
136
+ #import getpass
137
+ from pyngrok import ngrok, conf
138
+ #print("Enter your authtoken, which can be copied from https://dashboard.ngrok.com/auth")
139
+ conf.get_default().auth_token = "2WJNWULs5bCOyJnV24WQYJEKod3_YQUbM5EGCp8sgE4aQvzi"
140
+ port = 37689
141
+ # Open a ngrok tunnel to the HTTP server
142
+ public_url = ngrok.connect(port).public_url
143
+ print(" * ngrok tunnel \"{}\" -> \"http://127.0.0.1:{}\"".format(public_url, port))
requirements.txt CHANGED
@@ -9,4 +9,5 @@ arize-phoenix
9
  huggingface_hub
10
  sentence-transformers
11
  faiss-cpu
12
- bs4==0.0.1
 
 
9
  huggingface_hub
10
  sentence-transformers
11
  faiss-cpu
12
+ bs4==0.0.1
13
+ pip install pyngrok