Spaces:
Sleeping
Sleeping
requirements
Browse files- app.py +5 -0
- requirements-after.txt +3 -0
- requirements.txt +1 -3
app.py
CHANGED
@@ -1,8 +1,13 @@
|
|
|
|
|
|
|
|
|
|
1 |
from typing import Any, Dict
|
2 |
import gradio as gr
|
3 |
from pipeline import LongCorefPipeline
|
4 |
from huggingface_hub import snapshot_download
|
5 |
|
|
|
6 |
long_coref = LongCorefPipeline(snapshot_download("kwang2049/long-coref"))
|
7 |
|
8 |
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
os.system("pip install -r requirements-after.txt")
|
4 |
+
|
5 |
from typing import Any, Dict
|
6 |
import gradio as gr
|
7 |
from pipeline import LongCorefPipeline
|
8 |
from huggingface_hub import snapshot_download
|
9 |
|
10 |
+
|
11 |
long_coref = LongCorefPipeline(snapshot_download("kwang2049/long-coref"))
|
12 |
|
13 |
|
requirements-after.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
thinc==8.2.5
|
2 |
+
numpy==1.26.4
|
3 |
+
spacy==3.7.6
|
requirements.txt
CHANGED
@@ -1,4 +1,2 @@
|
|
1 |
long-coref @ git+https://github.com/kwang2049/long-coref.git@727612f441a91662565254a71c3bee72acf88797
|
2 |
-
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.3.0/en_core_web_sm-3.3.0-py3-none-any.whl
|
3 |
-
thinc==8.2.5
|
4 |
-
spacy==3.7.6
|
|
|
1 |
long-coref @ git+https://github.com/kwang2049/long-coref.git@727612f441a91662565254a71c3bee72acf88797
|
2 |
+
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.3.0/en_core_web_sm-3.3.0-py3-none-any.whl
|
|
|
|