cjian2025 commited on
Commit
b04747b
·
verified ·
1 Parent(s): 5de6dfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -397,7 +397,7 @@ with gr.Blocks(title="PDF聊天機器人", theme=gr.themes.Soft()) as demo:
397
 
398
  上傳您的PDF檔案,然後就可以向文件提問!支援多語言問答並可將記錄發送到信箱。
399
 
400
- **🔥 在Google Colab中執行**
401
  """
402
  )
403
 
@@ -559,9 +559,9 @@ print("🚀 啟動應用程式中...")
559
  # 嘗試載入現有的向量儲存
560
  bot.load_vector_store()
561
 
562
- # 在Colab中啟動應用程式
563
  demo.launch(
564
- share=True, # 在Colab中設為True獲得公共連結
565
  server_name="0.0.0.0", # 允許外部存取
566
  server_port=None,
567
  show_error=True,
 
397
 
398
  上傳您的PDF檔案,然後就可以向文件提問!支援多語言問答並可將記錄發送到信箱。
399
 
400
+ **🔥 在Hugging Face中執行**
401
  """
402
  )
403
 
 
559
  # 嘗試載入現有的向量儲存
560
  bot.load_vector_store()
561
 
562
+ # 在Hugging Face中啟動應用程式
563
  demo.launch(
564
+ share=True, # 在Hugging Face中設為True獲得公共連結
565
  server_name="0.0.0.0", # 允許外部存取
566
  server_port=None,
567
  show_error=True,