lifan0127 commited on
Commit
235c6e4
1 Parent(s): 3f803fc

fix: use paper-qa==0.0.21

Browse files
Files changed (2) hide show
  1. app.py +5 -2
  2. requirements.txt +1 -1
app.py CHANGED
@@ -38,6 +38,8 @@ with gr.Blocks(css=css_style) as demo:
38
  Fan Li ([@FanLi_RnD](https://twitter.com/FanLi_RnD)) - https://apex974.com/articles/literature-reviews-with-paper-qa-and-zotero
39
 
40
  This tool allows you to ask questions based on your Zotero library. It was built upon [Paper QA](https://github.com/whitead/paper-qa), [LangChain AI](https://github.com/hwchase17/langchain) and [pyZotero](https://github.com/urschrei/pyzotero).
 
 
41
  """)
42
 
43
  with gr.Row():
@@ -53,7 +55,7 @@ with gr.Blocks(css=css_style) as demo:
53
  "User", "Group"], label="Zotero Library Type", value="User", elem_id="zotero-library-type")
54
  zot_library_id = gr.Textbox(
55
  label="Zotero User/Group ID", value=os.getenv('ZOTERO_LIBRARY_ID'))
56
-
57
  zot_citation_style = gr.Textbox(
58
  label="Zotero Citation Style",
59
  value='nature',
@@ -138,7 +140,8 @@ with gr.Blocks(css=css_style) as demo:
138
 
139
  question.submit(
140
  fn=handle_submit,
141
- inputs=[zot, zot_selected_col, zot_collections, zot_citation_style, question, messages],
 
142
  outputs=[messages, msg_board, answer],
143
  show_progress=False
144
  )
 
38
  Fan Li ([@FanLi_RnD](https://twitter.com/FanLi_RnD)) - https://apex974.com/articles/literature-reviews-with-paper-qa-and-zotero
39
 
40
  This tool allows you to ask questions based on your Zotero library. It was built upon [Paper QA](https://github.com/whitead/paper-qa), [LangChain AI](https://github.com/hwchase17/langchain) and [pyZotero](https://github.com/urschrei/pyzotero).
41
+
42
+ <b>Check out Aria, my new AI Research Assistant Plugin for Zotero: https://github.com/lifan0127/ai-research-assistant.</b>
43
  """)
44
 
45
  with gr.Row():
 
55
  "User", "Group"], label="Zotero Library Type", value="User", elem_id="zotero-library-type")
56
  zot_library_id = gr.Textbox(
57
  label="Zotero User/Group ID", value=os.getenv('ZOTERO_LIBRARY_ID'))
58
+
59
  zot_citation_style = gr.Textbox(
60
  label="Zotero Citation Style",
61
  value='nature',
 
140
 
141
  question.submit(
142
  fn=handle_submit,
143
+ inputs=[zot, zot_selected_col, zot_collections,
144
+ zot_citation_style, question, messages],
145
  outputs=[messages, msg_board, answer],
146
  show_progress=False
147
  )
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- paper-qa==1.12.0
2
  gradio==3.28.3
3
  requests==2.31.0
4
  python-dotenv==1.0.0
 
1
+ paper-qa==0.0.21
2
  gradio==3.28.3
3
  requests==2.31.0
4
  python-dotenv==1.0.0