Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,12 +118,14 @@ Please provide your analysis in the following format:
|
|
| 118 |
|
| 119 |
Important: Base your analysis solely on visual evidence from the video. Focus on concrete, observable details rather than assumptions."""
|
| 120 |
|
|
|
|
|
|
|
| 121 |
def inference(video, step_number):
|
| 122 |
if not video:
|
| 123 |
return "Please upload a video first."
|
| 124 |
|
| 125 |
try:
|
| 126 |
-
|
| 127 |
video_data = video.read()
|
| 128 |
|
| 129 |
# Get possible reasons for the selected step
|
|
|
|
| 118 |
|
| 119 |
Important: Base your analysis solely on visual evidence from the video. Focus on concrete, observable details rather than assumptions."""
|
| 120 |
|
| 121 |
+
model, tokenizer = load_model()
|
| 122 |
+
|
| 123 |
def inference(video, step_number):
|
| 124 |
if not video:
|
| 125 |
return "Please upload a video first."
|
| 126 |
|
| 127 |
try:
|
| 128 |
+
|
| 129 |
video_data = video.read()
|
| 130 |
|
| 131 |
# Get possible reasons for the selected step
|