3a05chatgpt commited on
Commit
5635c8f
·
verified ·
1 Parent(s): 23ee640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- server_name="0.0.0.0",
243
- server_port=7860,
244
- show_api=False
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
  )