Manel commited on
Commit
57513fb
·
verified ·
1 Parent(s): 55a9140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -279,8 +279,8 @@ if __name__=="__main__":
279
  #my_bar.progress(0.1, "Loading Embedding & Database. Please wait.")
280
  #my_bar.progress(0.7, "Loading Model. Please wait.")
281
 
282
- db = load_db(device)
283
- model, tokenizer = load_model(model_name)
284
 
285
  response = """Ah, a question that touches the very heart of Stoic philosophy! Mindfulness, my dear, is an interior discipline that allows you to align your thoughts and actions with the rational order of the universe. To cultivate mindfulness, one must practice self-awareness, for it is only by understanding thyself that thou canst understand the world around thee.
286
 
@@ -300,7 +300,7 @@ if __name__=="__main__":
300
  st.write(user_question)
301
 
302
  #response = generate_response(user_question, model, all_templates)
303
- response = ""
304
  with st.chat_message("AI", avatar="🏛️"):
305
  st.write_stream(stream_to_screen(response))
306
 
 
279
  #my_bar.progress(0.1, "Loading Embedding & Database. Please wait.")
280
  #my_bar.progress(0.7, "Loading Model. Please wait.")
281
 
282
+ #db = load_db(device)
283
+ #model, tokenizer = load_model(model_name)
284
 
285
  response = """Ah, a question that touches the very heart of Stoic philosophy! Mindfulness, my dear, is an interior discipline that allows you to align your thoughts and actions with the rational order of the universe. To cultivate mindfulness, one must practice self-awareness, for it is only by understanding thyself that thou canst understand the world around thee.
286
 
 
300
  st.write(user_question)
301
 
302
  #response = generate_response(user_question, model, all_templates)
303
+
304
  with st.chat_message("AI", avatar="🏛️"):
305
  st.write_stream(stream_to_screen(response))
306