darisdzakwanhoesien commited on
Commit
3d7a0d1
·
verified ·
1 Parent(s): e8b3256

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 e:
 
 
55
  def run_llava(video, prompt):
56
- return {"model": "LLaVA-Video-Llama-3.1-8B", "error": f"LLaVA not available: {str(e)}"}
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