JJS341 commited on
Commit
b952a91
·
verified ·
1 Parent(s): dce0cd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import os
 
2
  os.system("python -m spacy download en_core_web_sm")
3
 
 
 
 
 
4
  # 1. 初始化指代消解模型
5
  print("正在載入 AI 模型,請稍候...")
6
  model = FCoref()
 
1
  import os
2
+ # 手動下載 spacy 的英文模型,這是 fastcoref 運作的基礎
3
  os.system("python -m spacy download en_core_web_sm")
4
 
5
+ import gradio as gr
6
+ from fastcoref import FCoref
7
+
8
+
9
  # 1. 初始化指代消解模型
10
  print("正在載入 AI 模型,請稍候...")
11
  model = FCoref()