Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -376,18 +376,17 @@ interface_1 = gr.Interface(
|
|
376 |
description=description_1,
|
377 |
)
|
378 |
|
379 |
-
# 创建第二个界面
|
380 |
interface_2 = gr.Interface(
|
381 |
fn=question_answer,
|
382 |
inputs=[
|
383 |
-
gr.Chatbot(
|
384 |
gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.03762.pdf )'),
|
385 |
gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf']),
|
386 |
gr.Textbox(label='Enter your question here'),
|
387 |
gr.Textbox(label='Enter your OpenAI API key here', password=True),
|
388 |
gr.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k-0613', 'text-davinci-003', 'gpt-4', 'gpt-4-32k'], label='Select Model', default='gpt-3.5-turbo'),
|
389 |
],
|
390 |
-
outputs=[gr.Chatbot(
|
391 |
examples=[],
|
392 |
title=title_2,
|
393 |
description=description_2,
|
|
|
376 |
description=description_1,
|
377 |
)
|
378 |
|
|
|
379 |
interface_2 = gr.Interface(
|
380 |
fn=question_answer,
|
381 |
inputs=[
|
382 |
+
gr.Chatbot(),
|
383 |
gr.Textbox(label='Enter PDF URL here (Example: https://arxiv.org/pdf/1706.03762.pdf )'),
|
384 |
gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf']),
|
385 |
gr.Textbox(label='Enter your question here'),
|
386 |
gr.Textbox(label='Enter your OpenAI API key here', password=True),
|
387 |
gr.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k-0613', 'text-davinci-003', 'gpt-4', 'gpt-4-32k'], label='Select Model', default='gpt-3.5-turbo'),
|
388 |
],
|
389 |
+
outputs=[gr.Chatbot()],
|
390 |
examples=[],
|
391 |
title=title_2,
|
392 |
description=description_2,
|