mehmet0001 commited on
Commit
3a130a2
·
verified ·
1 Parent(s): 884299d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -32,8 +32,7 @@ if st.session_state.stage == "crawl-input":
32
 
33
  txt = crawl_the_site.crawl(start,limit)
34
  st.session_state.collection = create_database.create_database(txt)
35
- st.write("""Crawling is done. Click \"Start Crawling!\" again to start prompting!
36
- Theres a chance that after sending the first prompt you dont see the output, just click \"Enter\" again.""")
37
  st.session_state.stage = "remove-crawl-input-widgets"
38
 
39
  if st.session_state.stage == "prompt-input":
@@ -72,5 +71,5 @@ if st.session_state.stage == "prompt-input":
72
  full_response += chunk + " "
73
  time.sleep(0.05)
74
  message_placeholder.markdown(full_response + "▌")
75
- message_placeholder.markdown(st.session_state.messages)
76
  st.session_state.messages.append({"role":"assistant","message":full_response})
 
32
 
33
  txt = crawl_the_site.crawl(start,limit)
34
  st.session_state.collection = create_database.create_database(txt)
35
+ st.write("Crawling is done. Click \"Start Crawling!\" again to start chatting!")
 
36
  st.session_state.stage = "remove-crawl-input-widgets"
37
 
38
  if st.session_state.stage == "prompt-input":
 
71
  full_response += chunk + " "
72
  time.sleep(0.05)
73
  message_placeholder.markdown(full_response + "▌")
74
+ message_placeholder.markdown(full_response)
75
  st.session_state.messages.append({"role":"assistant","message":full_response})