Spaces:
Runtime error
Runtime error
Commit
·
d2970d2
1
Parent(s):
1862b5e
fix: Update imports to new gradio version
Browse files- app.py +2 -1
- requirements.txt +26 -14
app.py
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
|
| 3 |
from typing import Dict, Tuple
|
| 4 |
import gradio as gr
|
| 5 |
-
from gradio.components import Dropdown, Textbox,
|
|
|
|
| 6 |
from types import MethodType
|
| 7 |
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
| 8 |
from luga import language as detect_language
|
|
|
|
| 2 |
|
| 3 |
from typing import Dict, Tuple
|
| 4 |
import gradio as gr
|
| 5 |
+
from gradio.components import Dropdown, Textbox, Button, Label, Markdown
|
| 6 |
+
from gradio import Row, Column
|
| 7 |
from types import MethodType
|
| 8 |
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
| 9 |
from luga import language as detect_language
|
requirements.txt
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
|
|
| 1 |
aiohttp==3.8.3
|
| 2 |
aiosignal==1.3.1
|
|
|
|
| 3 |
anyio==3.6.2
|
| 4 |
async-timeout==4.0.2
|
| 5 |
attrs==22.1.0
|
|
@@ -12,25 +14,27 @@ click==8.1.3
|
|
| 12 |
contourpy==1.0.6
|
| 13 |
cryptography==38.0.4
|
| 14 |
cycler==0.11.0
|
| 15 |
-
fastapi==0.
|
| 16 |
fasttext-wheel==0.9.2
|
| 17 |
ffmpy==0.3.0
|
| 18 |
filelock==3.8.0
|
| 19 |
fonttools==4.38.0
|
| 20 |
frozenlist==1.3.3
|
| 21 |
-
fsspec==
|
| 22 |
gdown==4.5.4
|
| 23 |
-
gradio==
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
idna==3.4
|
|
|
|
| 29 |
Jinja2==3.1.2
|
| 30 |
kiwisolver==1.4.4
|
| 31 |
linkify-it-py==1.0.3
|
| 32 |
luga==0.2.6
|
| 33 |
-
markdown-it-py==
|
| 34 |
MarkupSafe==2.1.1
|
| 35 |
matplotlib==3.6.2
|
| 36 |
mdit-py-plugins==0.3.1
|
|
@@ -48,31 +52,39 @@ Pillow==9.3.0
|
|
| 48 |
pybind11==2.10.1
|
| 49 |
pycparser==2.21
|
| 50 |
pycryptodome==3.16.0
|
| 51 |
-
pydantic==
|
|
|
|
| 52 |
pydub==0.25.1
|
|
|
|
| 53 |
PyNaCl==1.5.0
|
| 54 |
pyparsing==3.0.9
|
| 55 |
PySocks==1.7.1
|
| 56 |
python-dateutil==2.8.2
|
| 57 |
-
python-multipart==0.0.
|
| 58 |
pytz==2022.6
|
| 59 |
PyYAML==6.0
|
| 60 |
regex==2022.10.31
|
| 61 |
-
requests==2.
|
| 62 |
rfc3986==1.5.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
six==1.16.0
|
| 64 |
sniffio==1.3.0
|
| 65 |
soupsieve==2.3.2.post1
|
| 66 |
-
starlette==0.
|
| 67 |
sympy==1.11.1
|
| 68 |
tokenizers==0.13.2
|
|
|
|
| 69 |
torch==2.0.0
|
| 70 |
tqdm==4.64.1
|
| 71 |
transformers==4.28.1
|
| 72 |
-
|
|
|
|
| 73 |
typish==1.9.3
|
| 74 |
uc-micro-py==1.0.1
|
| 75 |
-
urllib3==
|
| 76 |
uvicorn==0.20.0
|
| 77 |
websockets==10.4
|
| 78 |
yarl==1.8.1
|
|
|
|
| 1 |
+
aiofiles==23.2.1
|
| 2 |
aiohttp==3.8.3
|
| 3 |
aiosignal==1.3.1
|
| 4 |
+
annotated-types==0.7.0
|
| 5 |
anyio==3.6.2
|
| 6 |
async-timeout==4.0.2
|
| 7 |
attrs==22.1.0
|
|
|
|
| 14 |
contourpy==1.0.6
|
| 15 |
cryptography==38.0.4
|
| 16 |
cycler==0.11.0
|
| 17 |
+
fastapi==0.112.2
|
| 18 |
fasttext-wheel==0.9.2
|
| 19 |
ffmpy==0.3.0
|
| 20 |
filelock==3.8.0
|
| 21 |
fonttools==4.38.0
|
| 22 |
frozenlist==1.3.3
|
| 23 |
+
fsspec==2024.6.1
|
| 24 |
gdown==4.5.4
|
| 25 |
+
gradio==4.42.0
|
| 26 |
+
gradio_client==1.3.0
|
| 27 |
+
h11==0.14.0
|
| 28 |
+
httpcore==1.0.5
|
| 29 |
+
httpx==0.27.0
|
| 30 |
+
huggingface-hub==0.24.6
|
| 31 |
idna==3.4
|
| 32 |
+
importlib_resources==6.4.4
|
| 33 |
Jinja2==3.1.2
|
| 34 |
kiwisolver==1.4.4
|
| 35 |
linkify-it-py==1.0.3
|
| 36 |
luga==0.2.6
|
| 37 |
+
markdown-it-py==3.0.0
|
| 38 |
MarkupSafe==2.1.1
|
| 39 |
matplotlib==3.6.2
|
| 40 |
mdit-py-plugins==0.3.1
|
|
|
|
| 52 |
pybind11==2.10.1
|
| 53 |
pycparser==2.21
|
| 54 |
pycryptodome==3.16.0
|
| 55 |
+
pydantic==2.8.2
|
| 56 |
+
pydantic_core==2.20.1
|
| 57 |
pydub==0.25.1
|
| 58 |
+
Pygments==2.18.0
|
| 59 |
PyNaCl==1.5.0
|
| 60 |
pyparsing==3.0.9
|
| 61 |
PySocks==1.7.1
|
| 62 |
python-dateutil==2.8.2
|
| 63 |
+
python-multipart==0.0.9
|
| 64 |
pytz==2022.6
|
| 65 |
PyYAML==6.0
|
| 66 |
regex==2022.10.31
|
| 67 |
+
requests==2.32.3
|
| 68 |
rfc3986==1.5.0
|
| 69 |
+
rich==13.8.0
|
| 70 |
+
ruff==0.6.2
|
| 71 |
+
semantic-version==2.10.0
|
| 72 |
+
shellingham==1.5.4
|
| 73 |
six==1.16.0
|
| 74 |
sniffio==1.3.0
|
| 75 |
soupsieve==2.3.2.post1
|
| 76 |
+
starlette==0.38.2
|
| 77 |
sympy==1.11.1
|
| 78 |
tokenizers==0.13.2
|
| 79 |
+
tomlkit==0.12.0
|
| 80 |
torch==2.0.0
|
| 81 |
tqdm==4.64.1
|
| 82 |
transformers==4.28.1
|
| 83 |
+
typer==0.12.5
|
| 84 |
+
typing_extensions==4.12.2
|
| 85 |
typish==1.9.3
|
| 86 |
uc-micro-py==1.0.1
|
| 87 |
+
urllib3==2.2.2
|
| 88 |
uvicorn==0.20.0
|
| 89 |
websockets==10.4
|
| 90 |
yarl==1.8.1
|