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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ 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
 
13
  prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
14
  ## Information :
@@ -37,7 +38,7 @@ if st.session_state.stage == "crawl-input":
37
 
38
  if st.session_state.stage == "prompt-input":
39
  prompt = prompt_input_area.text_area("Ask the documentation a question :")
40
- prompt_btn = st.button("Enter")
41
 
42
  if prompt and prompt_btn:
43
  results = st.session_state.collection.query(query_texts=[prompt],n_results=5)
 
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 :
 
38
 
39
  if st.session_state.stage == "prompt-input":
40
  prompt = prompt_input_area.text_area("Ask the documentation a question :")
41
+ prompt_btn = prompt_btn_area.button("Enter")
42
 
43
  if prompt and prompt_btn:
44
  results = st.session_state.collection.query(query_texts=[prompt],n_results=5)