Spaces:
Runtime error
Runtime error
Add copy button
Browse files
app.py
CHANGED
@@ -211,11 +211,11 @@ with gr.Blocks(css=css) as demo:
|
|
211 |
url = gr.Textbox(label='在此處輸入 PDF 網址')
|
212 |
gr.Markdown("<center>或</center>", elem_id="markdown-or")
|
213 |
file = gr.File(label='在此處上傳您的 PDF/研究論文/書籍', file_types=['.pdf'], placeholder="將文件拖放到此處 或 點擊上傳")
|
214 |
-
question = gr.Textbox(label='在這裡輸入您的問題', elem_id="question"
|
215 |
btn = gr.Button(value='提交', elem_id="submit_button")
|
216 |
btn.style(full_width=True)
|
217 |
|
218 |
-
answer = gr.Textbox(label='你的提問的答案是:')
|
219 |
|
220 |
#openAI_key=api_key
|
221 |
btn.click(question_answer, inputs=[url, file, question], outputs=[answer])
|
|
|
211 |
url = gr.Textbox(label='在此處輸入 PDF 網址')
|
212 |
gr.Markdown("<center>或</center>", elem_id="markdown-or")
|
213 |
file = gr.File(label='在此處上傳您的 PDF/研究論文/書籍', file_types=['.pdf'], placeholder="將文件拖放到此處 或 點擊上傳")
|
214 |
+
question = gr.Textbox(label='在這裡輸入您的問題', elem_id="question")
|
215 |
btn = gr.Button(value='提交', elem_id="submit_button")
|
216 |
btn.style(full_width=True)
|
217 |
|
218 |
+
answer = gr.Textbox(label='你的提問的答案是:', show_copy_button=True)
|
219 |
|
220 |
#openAI_key=api_key
|
221 |
btn.click(question_answer, inputs=[url, file, question], outputs=[answer])
|