Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ def _run_live_analysis(space_id: str, progress=gr.Progress(track_tqdm=True)):
|
|
251 |
)
|
252 |
|
253 |
endpoint_ready = False
|
254 |
-
if HF_TOKEN
|
255 |
try:
|
256 |
api = HfApi(token=HF_TOKEN)
|
257 |
endpoint = api.get_inference_endpoint(name=ENDPOINT_NAME)
|
|
|
251 |
)
|
252 |
|
253 |
endpoint_ready = False
|
254 |
+
if HF_TOKEN:
|
255 |
try:
|
256 |
api = HfApi(token=HF_TOKEN)
|
257 |
endpoint = api.get_inference_endpoint(name=ENDPOINT_NAME)
|