Upload app.py
Browse files
app.py
CHANGED
@@ -252,12 +252,12 @@ if __name__=="__main__":
|
|
252 |
logger.info(f"Running {model_name} model for inference on {device}")
|
253 |
|
254 |
# Loading and caching db and model
|
255 |
-
bar = st.progress(0, "Loading Database. Please wait.")
|
256 |
-
bar.progress(0.05, "Loading Embedding & Database. Please wait.")
|
257 |
db = load_db(device)
|
258 |
-
bar.progress(0.5, "Loading Model. Please wait.")
|
259 |
model, tokenizer = load_model(model_name)
|
260 |
-
bar.progress(0.9, "Ready to ask? Go ahead and type your question.")
|
261 |
#time.sleep(2)
|
262 |
#bar.empty()
|
263 |
|
|
|
252 |
logger.info(f"Running {model_name} model for inference on {device}")
|
253 |
|
254 |
# Loading and caching db and model
|
255 |
+
#bar = st.progress(0, "Loading Database. Please wait.")
|
256 |
+
#bar.progress(0.05, "Loading Embedding & Database. Please wait.")
|
257 |
db = load_db(device)
|
258 |
+
#bar.progress(0.5, "Loading Model. Please wait.")
|
259 |
model, tokenizer = load_model(model_name)
|
260 |
+
#bar.progress(0.9, "Ready to ask? Go ahead and type your question.")
|
261 |
#time.sleep(2)
|
262 |
#bar.empty()
|
263 |
|