whitead commited on
Commit
5371f78
1 Parent(s): 953e8c2

Fixed missing package

Browse files
Files changed (2) hide show
  1. app.py +0 -5
  2. requirements.txt +2 -1
app.py CHANGED
@@ -180,16 +180,11 @@ with gr.Blocks() as demo:
180
  label='Contexts to include')
181
 
182
  ask = gr.Button("Ask Question")
183
- gr.Markdown("## Answer")
184
  answer = gr.Markdown(label="Answer")
185
  with gr.Accordion("Context", open=True):
186
- gr.Markdown(
187
- "### Context\n\nThe following context was used to generate the answer:")
188
  context = gr.Markdown(label="Context")
189
 
190
  with gr.Accordion("Raw Text", open=False):
191
- gr.Markdown(
192
- "### Raw Text\n\nThe following raw text was used to generate the answer:")
193
  passages = gr.Markdown(label="Passages")
194
  ask.click(fn=do_ask, inputs=[query, buildb,
195
  openai_api_key, dataset,
180
  label='Contexts to include')
181
 
182
  ask = gr.Button("Ask Question")
 
183
  answer = gr.Markdown(label="Answer")
184
  with gr.Accordion("Context", open=True):
 
 
185
  context = gr.Markdown(label="Context")
186
 
187
  with gr.Accordion("Raw Text", open=False):
 
 
188
  passages = gr.Markdown(label="Passages")
189
  ask.click(fn=do_ask, inputs=[query, buildb,
190
  openai_api_key, dataset,
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  paper-qa>=0.0.18
2
  gradio
3
- requests
 
1
  paper-qa>=0.0.18
2
  gradio
3
+ requests
4
+ transformers