Spaces:
Running
Running
Commit ·
9768e7c
1
Parent(s): c575b22
upgrade pkg version
Browse files- app.py +4 -5
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -7,10 +7,9 @@ from dotenv import load_dotenv
|
|
| 7 |
from matplotlib.colors import LinearSegmentedColormap
|
| 8 |
import plotly.graph_objects as go
|
| 9 |
import numpy as np
|
| 10 |
-
from scipy.optimize import curve_fit
|
| 11 |
-
from huggingface_hub import HfApi
|
| 12 |
-
from huggingface_hub.
|
| 13 |
-
from huggingface_hub.utils import GatedRepoError
|
| 14 |
from gradio_rangeslider import RangeSlider
|
| 15 |
import datetime
|
| 16 |
from title import css, TITLE_HTML, SUBTITLE_HTML, LINKS_HTML
|
|
@@ -389,7 +388,7 @@ def check_model_exists(model_id):
|
|
| 389 |
return "Exists and is accessible"
|
| 390 |
except GatedRepoError:
|
| 391 |
return "Exists but is restricted"
|
| 392 |
-
except
|
| 393 |
if e.response.status_code == 404:
|
| 394 |
return "Does not exist"
|
| 395 |
else:
|
|
|
|
| 7 |
from matplotlib.colors import LinearSegmentedColormap
|
| 8 |
import plotly.graph_objects as go
|
| 9 |
import numpy as np
|
| 10 |
+
from scipy.optimize import curve_fit
|
| 11 |
+
from huggingface_hub import HfApi
|
| 12 |
+
from huggingface_hub.utils import GatedRepoError, HfHubHTTPError
|
|
|
|
| 13 |
from gradio_rangeslider import RangeSlider
|
| 14 |
import datetime
|
| 15 |
from title import css, TITLE_HTML, SUBTITLE_HTML, LINKS_HTML
|
|
|
|
| 388 |
return "Exists and is accessible"
|
| 389 |
except GatedRepoError:
|
| 390 |
return "Exists but is restricted"
|
| 391 |
+
except HfHubHTTPError as e:
|
| 392 |
if e.response.status_code == 404:
|
| 393 |
return "Does not exist"
|
| 394 |
else:
|
requirements.txt
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
plotly==5.22.0
|
| 2 |
scikit-learn>=1.3.0
|
| 3 |
gradio==5.15.0
|
| 4 |
-
huggingface_hub=
|
| 5 |
pandas>=2.0.0
|
| 6 |
openpyxl==3.1.2
|
| 7 |
-
# pydantic==2.7.1
|
| 8 |
pydantic>=2.9.2
|
| 9 |
fastapi==0.115.8
|
| 10 |
fastapi-cli==0.0.4
|
|
|
|
| 1 |
plotly==5.22.0
|
| 2 |
scikit-learn>=1.3.0
|
| 3 |
gradio==5.15.0
|
| 4 |
+
huggingface_hub>=1.0.0
|
| 5 |
pandas>=2.0.0
|
| 6 |
openpyxl==3.1.2
|
|
|
|
| 7 |
pydantic>=2.9.2
|
| 8 |
fastapi==0.115.8
|
| 9 |
fastapi-cli==0.0.4
|