Spaces:
Sleeping
Sleeping
update
Browse files- main.py +2 -0
- requirements.txt +1 -1
main.py
CHANGED
@@ -6,6 +6,8 @@ https://huggingface.co/spaces/sayakpaul/demo-docker-gradio
|
|
6 |
import argparse
|
7 |
import json
|
8 |
import platform
|
|
|
|
|
9 |
|
10 |
from allennlp.models.archival import archive_model, load_archive
|
11 |
from allennlp.predictors.text_classifier import TextClassifierPredictor
|
|
|
6 |
import argparse
|
7 |
import json
|
8 |
import platform
|
9 |
+
from collections import OrderedDict
|
10 |
+
# from typing import OrderedDict
|
11 |
|
12 |
from allennlp.models.archival import archive_model, load_archive
|
13 |
from allennlp.predictors.text_classifier import TextClassifierPredictor
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
fasttext==0.9.2
|
2 |
langid==1.1.6
|
3 |
gradio==2.3.0
|
4 |
-
allennlp
|
|
|
1 |
fasttext==0.9.2
|
2 |
langid==1.1.6
|
3 |
gradio==2.3.0
|
4 |
+
allennlp==0.9.0
|