Spaces:
Runtime error
Runtime error
Fix requirements.
Browse filesFix auto-restart
Up Gradio version.
Up Gradio deps version.
Update requirements.
Update requirements.
- app.py +2 -1
- requirements.txt +4 -4
app.py
CHANGED
@@ -18,6 +18,7 @@ It's designed as a template to recreate the dashboard for the prompt translation
|
|
18 |
|
19 |
To create a new dashboard, you need several environment variables, that you can easily set in the HuggingFace Space that you are using to host the dashboard:
|
20 |
|
|
|
21 |
- SOURCE_DATASET: The dataset id of the source dataset
|
22 |
- SOURCE_WORKSPACE: The workspace id of the source dataset
|
23 |
- TARGET_RECORDS: The number of records that you have as a target to annotate. We usually set this to 500.
|
@@ -44,7 +45,7 @@ def restart() -> None:
|
|
44 |
# Update Space name with your Space information
|
45 |
gr.Info("Restarting space at " + str(datetime.datetime.now()))
|
46 |
restart_space(
|
47 |
-
"
|
48 |
token=os.getenv("HF_TOKEN"),
|
49 |
# factory_reboot=True,
|
50 |
)
|
|
|
18 |
|
19 |
To create a new dashboard, you need several environment variables, that you can easily set in the HuggingFace Space that you are using to host the dashboard:
|
20 |
|
21 |
+
- HF_TOKEN: Token with write access from your Hugging Face account: https://huggingface.co/settings/tokens
|
22 |
- SOURCE_DATASET: The dataset id of the source dataset
|
23 |
- SOURCE_WORKSPACE: The workspace id of the source dataset
|
24 |
- TARGET_RECORDS: The number of records that you have as a target to annotate. We usually set this to 500.
|
|
|
45 |
# Update Space name with your Space information
|
46 |
gr.Info("Restarting space at " + str(datetime.datetime.now()))
|
47 |
restart_space(
|
48 |
+
"DIBT-Czech/Dashboard",
|
49 |
token=os.getenv("HF_TOKEN"),
|
50 |
# factory_reboot=True,
|
51 |
)
|
requirements.txt
CHANGED
@@ -19,8 +19,8 @@ ffmpy==0.3.1
|
|
19 |
filelock==3.13.1
|
20 |
fonttools==4.48.1
|
21 |
fsspec==2024.2.0
|
22 |
-
gradio==4.
|
23 |
-
gradio_client==0.
|
24 |
h11==0.14.0
|
25 |
httpcore==1.0.2
|
26 |
httpx==0.26.0
|
@@ -47,14 +47,14 @@ pydub==0.25.1
|
|
47 |
Pygments==2.17.2
|
48 |
pyparsing==3.1.1
|
49 |
python-dateutil==2.8.2
|
50 |
-
python-multipart==0.0.
|
51 |
pytz==2024.1
|
52 |
PyYAML==6.0.1
|
53 |
referencing==0.33.0
|
54 |
requests==2.31.0
|
55 |
rich==13.7.0
|
56 |
rpds-py==0.17.1
|
57 |
-
ruff==0.2.
|
58 |
semantic-version==2.10.0
|
59 |
shellingham==1.5.4
|
60 |
six==1.16.0
|
|
|
19 |
filelock==3.13.1
|
20 |
fonttools==4.48.1
|
21 |
fsspec==2024.2.0
|
22 |
+
gradio==4.21.0
|
23 |
+
gradio_client==0.12.0
|
24 |
h11==0.14.0
|
25 |
httpcore==1.0.2
|
26 |
httpx==0.26.0
|
|
|
47 |
Pygments==2.17.2
|
48 |
pyparsing==3.1.1
|
49 |
python-dateutil==2.8.2
|
50 |
+
python-multipart==0.0.9
|
51 |
pytz==2024.1
|
52 |
PyYAML==6.0.1
|
53 |
referencing==0.33.0
|
54 |
requests==2.31.0
|
55 |
rich==13.7.0
|
56 |
rpds-py==0.17.1
|
57 |
+
ruff==0.2.2
|
58 |
semantic-version==2.10.0
|
59 |
shellingham==1.5.4
|
60 |
six==1.16.0
|