Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -238,8 +238,9 @@ with gr.Blocks(theme=gr.themes.Soft(), title="PDF 摘要助手") as demo:
|
|
238 |
clear_btn.click(clear_all, outputs=[summary_output, question_input, answer_output])
|
239 |
|
240 |
if __name__ == "__main__":
|
|
|
241 |
demo.launch(
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
)
|
|
|
238 |
clear_btn.click(clear_all, outputs=[summary_output, question_input, answer_output])
|
239 |
|
240 |
if __name__ == "__main__":
|
241 |
+
# Hugging Face Spaces 部署設定
|
242 |
demo.launch(
|
243 |
+
share=False, # Hugging Face Spaces 不需要 share
|
244 |
+
show_api=False,
|
245 |
+
show_error=True
|
246 |
)
|