Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -210,7 +210,7 @@ with gr.Blocks(css=css) as demo:
|
|
210 |
#openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
|
211 |
url = gr.Textbox(label='在此處輸入 PDF 網址')
|
212 |
gr.Markdown("<center>或</center>", elem_id="markdown-or")
|
213 |
-
file = gr.File(label='在此處上傳您的 PDF/研究論文/書籍', file_types=['.pdf'])
|
214 |
question = gr.Textbox(label='在這裡輸入您的問題', elem_id="question")
|
215 |
btn = gr.Button(value='提交', elem_id="submit_button")
|
216 |
btn.style(full_width=True)
|
|
|
210 |
#openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
|
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)
|