Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,10 +78,10 @@ def process_vid(file,cur_frame,every_n):
|
|
| 78 |
else:
|
| 79 |
pass
|
| 80 |
count +=1
|
| 81 |
-
|
| 82 |
except Exception as e:
|
| 83 |
-
|
| 84 |
-
|
| 85 |
|
| 86 |
def process_im(file):
|
| 87 |
read_file = Image.open(file)
|
|
|
|
| 78 |
else:
|
| 79 |
pass
|
| 80 |
count +=1
|
| 81 |
+
#return (None,f"Searching Frame: {i}", "")
|
| 82 |
except Exception as e:
|
| 83 |
+
return (gr.HTML(f'{e}'),"","")
|
| 84 |
+
return (gr.HTML('No frame matches found.'),"","")
|
| 85 |
|
| 86 |
def process_im(file):
|
| 87 |
read_file = Image.open(file)
|