sayakpaul HF staff commited on
Commit
a61ba7e
1 Parent(s): b82f6a5

fix: file generation.

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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}](./{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
 
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