Spaces:
Sleeping
Sleeping
fix: file generation.
Browse files
app.py
CHANGED
@@ -72,19 +72,19 @@ def prepare_report(scheduler_name: str, results: dict):
|
|
72 |
|
73 |
image_name = f"{scheduler_name}_images.png"
|
74 |
image_grid.save(image_name)
|
75 |
-
img_str = f"![img_grid_{scheduler_name}](
|
76 |
|
77 |
report_str = f"""
|
78 |
-
|
79 |
|
80 |
-
|
81 |
|
82 |
-
|
83 |
|
84 |
-
|
85 |
|
86 |
-
|
87 |
-
|
88 |
"""
|
89 |
|
90 |
return report_str
|
|
|
72 |
|
73 |
image_name = f"{scheduler_name}_images.png"
|
74 |
image_grid.save(image_name)
|
75 |
+
img_str = img_str = f"![img_grid_{scheduler_name}](/file=./{image_name})\n"
|
76 |
|
77 |
report_str = f"""
|
78 |
+
\n\n## {scheduler_name}
|
79 |
|
80 |
+
### Sample images
|
81 |
|
82 |
+
{img_str}
|
83 |
|
84 |
+
### Scores
|
85 |
|
86 |
+
{scores}
|
87 |
+
\n\n
|
88 |
"""
|
89 |
|
90 |
return report_str
|