Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def fetch_sdo_images(max_images, ident="0745", size="1024by960", tool="ccor1"):
|
|
36 |
# Extract image filenames matching the pattern {DATE}_{IDENT}_{TOOL}_{SIZE}.jpg
|
37 |
image_files = []
|
38 |
for link in links:
|
|
|
39 |
href = link.get('href')
|
40 |
if href and href.endswith(f"_{ident}_{tool}_{size}.jpg"):
|
41 |
# Check if the filename starts with a valid timestamp (YYYYMMDD_HHMMSS)
|
@@ -308,7 +309,8 @@ with gr.Blocks(title="Solar CME Detection") as demo:
|
|
308 |
# Fetch button action
|
309 |
fetch_button.click(
|
310 |
fn=handle_fetch,
|
311 |
-
inputs=[max_images, ident, size, tool],
|
|
|
312 |
outputs=[report, preview, fetched_frames_state, total_images]
|
313 |
)
|
314 |
|
|
|
36 |
# Extract image filenames matching the pattern {DATE}_{IDENT}_{TOOL}_{SIZE}.jpg
|
37 |
image_files = []
|
38 |
for link in links:
|
39 |
+
print(link)
|
40 |
href = link.get('href')
|
41 |
if href and href.endswith(f"_{ident}_{tool}_{size}.jpg"):
|
42 |
# Check if the filename starts with a valid timestamp (YYYYMMDD_HHMMSS)
|
|
|
309 |
# Fetch button action
|
310 |
fetch_button.click(
|
311 |
fn=handle_fetch,
|
312 |
+
#inputs=[max_images, ident, size, tool],
|
313 |
+
inputs=[max_images],
|
314 |
outputs=[report, preview, fetched_frames_state, total_images]
|
315 |
)
|
316 |
|