whitead commited on
Commit
03af56f
1 Parent(s): 64ed59a

Fixed README config

Browse files
Files changed (2) hide show
  1. README.md +21 -2
  2. space.py +3 -2
README.md CHANGED
@@ -1,2 +1,21 @@
1
- # paper-qa-gradio
2
- Paper QA Gradio Space
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Paper Qa
3
+ emoji: 📉
4
+ colorFrom: indigo
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 3.18.0
8
+ app_file: app.py
9
+ pinned: true
10
+ license: mit
11
+ ---
12
+
13
+ # Paper QA
14
+
15
+ This tool will enable asking questions of your uploaded text or PDF documents.
16
+ It uses OpenAI's GPT models and thus you must enter your API key below. This
17
+ tool is under active development and currently uses many tokens - up to 10,000
18
+ for a single query. That is $0.10-0.20 per query, so please be careful!
19
+
20
+ * [PaperQA](https://github.com/whitead/paper-qa) is the code used to build this tool.
21
+ * [langchain](https://github.com/hwchase17/langchain) is the main library this tool utilizes.
space.py CHANGED
@@ -49,7 +49,7 @@ with gr.Blocks() as demo:
49
  gr.Markdown("""
50
  # Document Question and Answer
51
 
52
- This tool will enable question and answers with your uploaded text or PDF documents.
53
  It uses OpenAI's GPT models and thus you must enter your API key below. This
54
  tool is under active development and currently uses many tokens - up to 10,000
55
  for a single query. That is $0.10-0.20 per query, so please be careful!
@@ -87,7 +87,8 @@ with gr.Blocks() as demo:
87
  gr.Markdown("## Answer")
88
  answer = gr.Markdown(label="Answer")
89
  with gr.Accordion("Context", open=False):
90
- gr.Markdown("### Context\n\nThe following context was used to generate the answer:")
 
91
  context = gr.Markdown(label="Context")
92
  ask.click(fn=do_ask, inputs=[query, buildb,
93
  openai_api_key, dataset], outputs=[answer, context])
 
49
  gr.Markdown("""
50
  # Document Question and Answer
51
 
52
+ This tool will enable asking questions of your uploaded text or PDF documents.
53
  It uses OpenAI's GPT models and thus you must enter your API key below. This
54
  tool is under active development and currently uses many tokens - up to 10,000
55
  for a single query. That is $0.10-0.20 per query, so please be careful!
 
87
  gr.Markdown("## Answer")
88
  answer = gr.Markdown(label="Answer")
89
  with gr.Accordion("Context", open=False):
90
+ gr.Markdown(
91
+ "### Context\n\nThe following context was used to generate the answer:")
92
  context = gr.Markdown(label="Context")
93
  ask.click(fn=do_ask, inputs=[query, buildb,
94
  openai_api_key, dataset], outputs=[answer, context])