Manel commited on
Commit
38348b6
·
verified ·
1 Parent(s): 64a7074

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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