Pragya Jatav commited on
Commit
e687f60
·
1 Parent(s): 8d54e01
pages/1_Model_Quality.py CHANGED
@@ -22,7 +22,7 @@ def save_ppt_file():
22
  # Helper function to add Plotly figure to slide
23
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
24
  img_stream = BytesIO()
25
- pio.write_image(fig, img_stream, format='png',engine="orca")
26
  slide.shapes.add_picture(img_stream, left, top, width, height)
27
 
28
  # Slide 1: Model Quality with Chart
 
22
  # Helper function to add Plotly figure to slide
23
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
24
  img_stream = BytesIO()
25
+ pio.write_image(fig, img_stream, format='png')
26
  slide.shapes.add_picture(img_stream, left, top, width, height)
27
 
28
  # Slide 1: Model Quality with Chart
pages/2_Scenario_Planner.py CHANGED
@@ -61,7 +61,7 @@ def save_ppt_file(summary_df_sorted,fig1,fig2,fig3):
61
  # Helper function to add Plotly figure to slide
62
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
63
  img_stream = BytesIO()
64
- pio.write_image(fig, img_stream, format='png',engine="orca")
65
  slide.shapes.add_picture(img_stream, left, top, width, height)
66
 
67
  for i in range(0,len(channels_list)):
 
61
  # Helper function to add Plotly figure to slide
62
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
63
  img_stream = BytesIO()
64
+ pio.write_image(fig, img_stream, format='png')
65
  slide.shapes.add_picture(img_stream, left, top, width, height)
66
 
67
  for i in range(0,len(channels_list)):
pages/3_Saved_Scenarios.py CHANGED
@@ -204,7 +204,7 @@ def save_ppt_file(fig1,fig2,fig3):
204
  # Helper function to add Plotly figure to slide
205
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
206
  img_stream = BytesIO()
207
- pio.write_image(fig, img_stream, format='png',engine="orca")
208
  slide.shapes.add_picture(img_stream, left, top, width, height)
209
 
210
  slide_1 = prs.slides.add_slide(prs.slide_layouts[6])
 
204
  # Helper function to add Plotly figure to slide
205
  def add_plotly_chart_to_slide(slide, fig, left, top, width, height):
206
  img_stream = BytesIO()
207
+ pio.write_image(fig, img_stream, format='png')
208
  slide.shapes.add_picture(img_stream, left, top, width, height)
209
 
210
  slide_1 = prs.slides.add_slide(prs.slide_layouts[6])