Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -292,9 +292,9 @@ def load_demo():
|
|
292 |
return "No fetched frames available. Please fetch images first.", [], None, [], 0
|
293 |
preview = [Image.fromarray(frame) for frame in frames] if frames else []
|
294 |
|
|
|
|
|
295 |
|
296 |
-
|
297 |
-
return "Demo Loaded", preview, None, preview, len(frames)
|
298 |
|
299 |
# Gradio Blocks interface
|
300 |
with gr.Blocks(title="Solar CME Detection") as demo:
|
|
|
292 |
return "No fetched frames available. Please fetch images first.", [], None, [], 0
|
293 |
preview = [Image.fromarray(frame) for frame in frames] if frames else []
|
294 |
|
295 |
+
message="Demo Loaded"
|
296 |
+
return message, preview, frames, total_images
|
297 |
|
|
|
|
|
298 |
|
299 |
# Gradio Blocks interface
|
300 |
with gr.Blocks(title="Solar CME Detection") as demo:
|