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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ api_key = "sk-or-v1-5b41e7106feb9b982d4ef5a6aa0959993387ba2e5fc9830df1279418776e
7
 
8
  openai_client = OpenAI(base_url="https://openrouter.ai/api/v1",api_key=api_key)
9
 
 
10
  output = st.empty()
11
 
12
  prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
@@ -35,7 +36,7 @@ if st.session_state.stage == "crawl-input":
35
  st.session_state.stage = "remove-crawl-input-widgets"
36
 
37
  if st.session_state.stage == "prompt-input":
38
- prompt = st.text_area("Ask the documentation a question :")
39
  prompt_btn = st.button("Enter")
40
 
41
  if prompt and prompt_btn:
 
7
 
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
 
13
  prompt_template = """Answer the question only according to the information provided below. Answer only the user's question, dont give additional information.
 
36
  st.session_state.stage = "remove-crawl-input-widgets"
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: