Spaces:
Running
Running
Shunfeng Zheng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import time # 模拟处理耗时
|
3 |
-
|
|
|
4 |
|
5 |
nlp = spacy.load("en_core_web_md")
|
6 |
def process_api(input_text):
|
|
|
1 |
import gradio as gr
|
2 |
import time # 模拟处理耗时
|
3 |
+
import os
|
4 |
+
os.system("python -m spacy download en_core_web_md")
|
5 |
|
6 |
nlp = spacy.load("en_core_web_md")
|
7 |
def process_api(input_text):
|