mehmet0001 commited on
Commit
76cb8f6
·
verified ·
1 Parent(s): c18f5b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,8 +8,8 @@ api_key = "sk-or-v1-5b41e7106feb9b982d4ef5a6aa0959993387ba2e5fc9830df1279418776e
8
  openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
9
 
10
  prompt_input_area = st.empty()
11
- output = st.empty()
12
  prompt_btn_area = st.empty()
 
13
 
14
  prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
15
  ## Information :
@@ -33,7 +33,8 @@ if st.session_state.stage == "crawl-input":
33
 
34
  txt = crawl_the_site.crawl(start,limit)
35
  st.session_state.collection = create_database.create_database(txt)
36
- st.write("Crawling is done. Click \"Start Crawling!\" again to start prompting!")
 
37
  st.session_state.stage = "remove-crawl-input-widgets"
38
 
39
  if st.session_state.stage == "prompt-input":
 
8
  openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
9
 
10
  prompt_input_area = st.empty()
 
11
  prompt_btn_area = st.empty()
12
+ output = st.empty()
13
 
14
  prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
15
  ## Information :
 
33
 
34
  txt = crawl_the_site.crawl(start,limit)
35
  st.session_state.collection = create_database.create_database(txt)
36
+ st.write("Crawling is done. Click \"Start Crawling!\" again to start prompting!\n
37
+ Theres a chance that after sending the first prompt you dont see the output, just click \"Enter\" again. ")
38
  st.session_state.stage = "remove-crawl-input-widgets"
39
 
40
  if st.session_state.stage == "prompt-input":