Spaces:
Sleeping
Sleeping
Commit ·
abc5374
1
Parent(s): 74258b4
Auto-update via watch script
Browse files
app.py
CHANGED
|
@@ -241,7 +241,7 @@ def process_vision(images, model_name: str, hf_token: str):
|
|
| 241 |
if not images:
|
| 242 |
yield "Please upload at least one image."
|
| 243 |
return
|
| 244 |
-
if not
|
| 245 |
yield "⚠️ Please provide your HuggingFace token in the sidebar to use PaliGemma."
|
| 246 |
return
|
| 247 |
if not model_name or "No models" in model_name or "Ollama" in model_name:
|
|
|
|
| 241 |
if not images:
|
| 242 |
yield "Please upload at least one image."
|
| 243 |
return
|
| 244 |
+
if not _resolve_token(hf_token):
|
| 245 |
yield "⚠️ Please provide your HuggingFace token in the sidebar to use PaliGemma."
|
| 246 |
return
|
| 247 |
if not model_name or "No models" in model_name or "Ollama" in model_name:
|