Update app.py
Browse files
app.py
CHANGED
|
@@ -51,9 +51,11 @@ try:
|
|
| 51 |
except Exception as e:
|
| 52 |
return {"model": "LLaVA-Video-Llama-3.1-8B", "error": str(e)}
|
| 53 |
|
| 54 |
-
except Exception as
|
|
|
|
|
|
|
| 55 |
def run_llava(video, prompt):
|
| 56 |
-
return {"model": "LLaVA-Video-Llama-3.1-8B", "error": f"LLaVA not available: {
|
| 57 |
|
| 58 |
# ======================
|
| 59 |
# Unified App
|
|
|
|
| 51 |
except Exception as e:
|
| 52 |
return {"model": "LLaVA-Video-Llama-3.1-8B", "error": str(e)}
|
| 53 |
|
| 54 |
+
except Exception as outer_error:
|
| 55 |
+
llava_load_error = str(outer_error)
|
| 56 |
+
|
| 57 |
def run_llava(video, prompt):
|
| 58 |
+
return {"model": "LLaVA-Video-Llama-3.1-8B", "error": f"LLaVA not available: {llava_load_error}"}
|
| 59 |
|
| 60 |
# ======================
|
| 61 |
# Unified App
|