standardteam commited on
Commit
6e503f7
1 Parent(s): 8b4c0fe

Update APP.py

Browse files
Files changed (1) hide show
  1. APP.py +4 -4
APP.py CHANGED
@@ -37,15 +37,15 @@ def qa(file, openaikey, query, chain_type, k):
37
  iface = gr.Interface(
38
  fn=qa,
39
  inputs=[
40
- gr.inputs.File(label="上传PDF"),
41
  gr.inputs.Textbox(label="OpenAI API Key"),
42
- gr.inputs.Textbox(label="你的问题"),
43
  gr.inputs.Dropdown(choices=['stuff', 'map_reduce', "refine", "map_rerank"], label="Chain type"),
44
  gr.inputs.Slider(minimum=1, maximum=5, default=2, label="Number of relevant chunks"),
45
  ],
46
  outputs="text",
47
- title="你可以问我关于你上传的PDF文件的任何信息!",
48
- description="1) 上传一个PDF文件. 2)输入你的OpenAI API key.这将产生费用 3) 输入问题然后点击Run"
49
  )
50
 
51
  iface.launch()
 
37
  iface = gr.Interface(
38
  fn=qa,
39
  inputs=[
40
+ gr.inputs.File(label="Upload PDF"),
41
  gr.inputs.Textbox(label="OpenAI API Key"),
42
+ gr.inputs.Textbox(label="Your question"),
43
  gr.inputs.Dropdown(choices=['stuff', 'map_reduce', "refine", "map_rerank"], label="Chain type"),
44
  gr.inputs.Slider(minimum=1, maximum=5, default=2, label="Number of relevant chunks"),
45
  ],
46
  outputs="text",
47
+ title="Question Answering with your PDF file",
48
+ description="Upload a PDF file, enter OpenAI API key, type a question and get your answer."
49
  )
50
 
51
  iface.launch()