mehradans92 commited on
Commit
310f57e
1 Parent(s): a5f6a02

remved comments

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -25,7 +25,7 @@ api_key = st.text_input('OpenAI API Key',
25
  placeholder='sk-...',
26
  help=f"['What is that?']({api_key_url})",
27
  type="password",
28
- value = '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')
29
 
30
  os.environ["OPENAI_API_KEY"] = f"{api_key}" #
31
  if len(api_key) != 51:
@@ -45,8 +45,8 @@ def search_click_callback(search_query, max_results, XRxiv_servers=[]):
45
  with st.form(key='columns_in_form', clear_on_submit = False):
46
  c1, c2 = st.columns([5, 0.8])
47
  with c1:
48
- search_query = st.text_input("Input search query here:", placeholder='Keywords for most relevant search...', value='hemolytic peptides'
49
- )#search_query, max_results_current))
50
 
51
  with c2:
52
  max_results = st.number_input("Max papers", value=max_results_current)
@@ -103,9 +103,6 @@ with st.form(key='question_form', clear_on_submit = False):
103
  with c1:
104
  question_query = st.text_input("What do you wanna know from these papers?", placeholder='Input questions here...',
105
  value='')
106
- # search_query = st.text_input("Input search query here:", placeholder='Keywords for most relevant search...', value='CFD Modeling'
107
- # )#search_query, max_results_current))
108
-
109
  with c2:
110
  word_count = st.slider("Suggested number of words in your answer?", 30, 300, 100)
111
  submitButton = st.form_submit_button('Submit')
 
25
  placeholder='sk-...',
26
  help=f"['What is that?']({api_key_url})",
27
  type="password",
28
+ value = '')
29
 
30
  os.environ["OPENAI_API_KEY"] = f"{api_key}" #
31
  if len(api_key) != 51:
 
45
  with st.form(key='columns_in_form', clear_on_submit = False):
46
  c1, c2 = st.columns([5, 0.8])
47
  with c1:
48
+ search_query = st.text_input("Input search query here:", placeholder='Keywords for most relevant search...', value=''
49
+ )
50
 
51
  with c2:
52
  max_results = st.number_input("Max papers", value=max_results_current)
 
103
  with c1:
104
  question_query = st.text_input("What do you wanna know from these papers?", placeholder='Input questions here...',
105
  value='')
 
 
 
106
  with c2:
107
  word_count = st.slider("Suggested number of words in your answer?", 30, 300, 100)
108
  submitButton = st.form_submit_button('Submit')