luisotorres commited on
Commit
8ddcc62
Β·
1 Parent(s): d4bec39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def plot_volatility_bands(ticker, reference_year):
91
  print(f"Demand Level 3Οƒ: {Low_Band_3std.round(2)}\n")
92
 
93
  # Creating an HTML extension of the Plotly figure
94
- fig_html = fig.to_html(full_html=False, include_plotlyjs='cdn')
95
 
96
  # Creating the text output
97
  text_info = f"""
@@ -126,7 +126,7 @@ iface = gr.Interface(
126
  gr.inputs.Number(label="Enter the Year of Reference")
127
  ],
128
  outputs=[
129
- gr.outputs.HTML(label="Candlestick Chart"),
130
  gr.outputs.Textbox(label="Supply and Demand Levels")
131
  ]
132
  )
 
91
  print(f"Demand Level 3Οƒ: {Low_Band_3std.round(2)}\n")
92
 
93
  # Creating an HTML extension of the Plotly figure
94
+ fig_html = fig
95
 
96
  # Creating the text output
97
  text_info = f"""
 
126
  gr.inputs.Number(label="Enter the Year of Reference")
127
  ],
128
  outputs=[
129
+ gr.outputs.Plotly(label="Candlestick Chart")(label="Candlestick Chart"),
130
  gr.outputs.Textbox(label="Supply and Demand Levels")
131
  ]
132
  )