Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -259,12 +259,10 @@ def process_input(gif_file, max_images, size, tool, lower_bound, upper_bound, pa
|
|
259 |
)
|
260 |
|
261 |
return report, results, gif_path, preview, len(frames)
|
262 |
-
def load_demo(
|
263 |
-
"""Process either uploaded GIF or fetched SDO images."""
|
264 |
gif_file="https://huggingface.co/spaces/broadfield-dev/detect-cme/resolve/main/demo_gif.gif"
|
265 |
-
|
266 |
if gif_file:
|
267 |
-
frames, error = extract_frames(gif_file
|
268 |
if error:
|
269 |
return error, [], None, [], 0
|
270 |
else:
|
|
|
259 |
)
|
260 |
|
261 |
return report, results, gif_path, preview, len(frames)
|
262 |
+
def load_demo():
|
|
|
263 |
gif_file="https://huggingface.co/spaces/broadfield-dev/detect-cme/resolve/main/demo_gif.gif"
|
|
|
264 |
if gif_file:
|
265 |
+
frames, error = extract_frames(gif_file)
|
266 |
if error:
|
267 |
return error, [], None, [], 0
|
268 |
else:
|