Spaces:
Sleeping
Sleeping
Sasmita Harini commited on
Commit ·
1c7a511
1
Parent(s): 39271c2
Run FastAPI as subprocess in app.py
Browse files- requirements.txt +16 -20
- test.py +0 -31
requirements.txt
CHANGED
|
@@ -1,20 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
gtts==2.5.4
|
| 18 |
-
scikit-learn==1.6.1
|
| 19 |
-
protobuf==3.20.3
|
| 20 |
-
sentence-transformers==3.4.1
|
|
|
|
| 1 |
+
requests
|
| 2 |
+
beautifulsoup4
|
| 3 |
+
transformers
|
| 4 |
+
nltk
|
| 5 |
+
streamlit
|
| 6 |
+
gtts
|
| 7 |
+
newspaper3k
|
| 8 |
+
requests>=2.31.0
|
| 9 |
+
beautifulsoup4>=4.12.3
|
| 10 |
+
transformers>=4.35.2
|
| 11 |
+
torch>=2.1.0 # Required by transformers for T5 model
|
| 12 |
+
keybert>=0.7.0
|
| 13 |
+
spacy>=3.7.2
|
| 14 |
+
nltk>=3.8.1
|
| 15 |
+
groq>=0.4.2
|
| 16 |
+
sentencepiece>=0.1.99 # Required by T5Tokenizer
|
|
|
|
|
|
|
|
|
|
|
|
test.py
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
import pkg_resources
|
| 2 |
-
|
| 3 |
-
packages = [
|
| 4 |
-
"requests",
|
| 5 |
-
"beautifulsoup4",
|
| 6 |
-
"transformers",
|
| 7 |
-
"torch",
|
| 8 |
-
"keybert",
|
| 9 |
-
"spacy",
|
| 10 |
-
"nltk",
|
| 11 |
-
"groq",
|
| 12 |
-
"httpx",
|
| 13 |
-
"sentencepiece",
|
| 14 |
-
"streamlit",
|
| 15 |
-
"fastapi",
|
| 16 |
-
"pydantic",
|
| 17 |
-
"uvicorn",
|
| 18 |
-
"deep-translator",
|
| 19 |
-
"gtts",
|
| 20 |
-
"scikit-learn",
|
| 21 |
-
"protobuf",
|
| 22 |
-
"sentence-transformers",
|
| 23 |
-
"en_core_web_md",
|
| 24 |
-
]
|
| 25 |
-
|
| 26 |
-
for package in packages:
|
| 27 |
-
try:
|
| 28 |
-
version = pkg_resources.get_distribution(package).version
|
| 29 |
-
print(f"{package}=={version}")
|
| 30 |
-
except pkg_resources.DistributionNotFound:
|
| 31 |
-
print(f"{package} is not installed.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|