mehradans92 commited on
Commit
a2f7c22
·
1 Parent(s): 1ef9098

moved import

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,7 @@ api_key = st.text_input('OpenAI API Key',
26
  os.environ["OPENAI_API_KEY"] = f"{api_key}" #
27
  if len(api_key) != 51:
28
  st.warning('Please enter a valid OpenAI API key.', icon="⚠️")
29
- import paperqa
30
 
31
 
32
  def call_arXiv_API(search_query, search_by='all', sort_by='relevance', max_results='10', folder_name='arxiv-dl'):
@@ -188,6 +188,7 @@ if searchButton:
188
 
189
 
190
  def answer_callback(question_query):
 
191
  global docs
192
  # global pdf_info
193
  progress_text = "Please wait..."
 
26
  os.environ["OPENAI_API_KEY"] = f"{api_key}" #
27
  if len(api_key) != 51:
28
  st.warning('Please enter a valid OpenAI API key.', icon="⚠️")
29
+
30
 
31
 
32
  def call_arXiv_API(search_query, search_by='all', sort_by='relevance', max_results='10', folder_name='arxiv-dl'):
 
188
 
189
 
190
  def answer_callback(question_query):
191
+ import paperqa
192
  global docs
193
  # global pdf_info
194
  progress_text = "Please wait..."