luisotorres commited on
Commit
6c634e7
Β·
1 Parent(s): 3f16c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -112,7 +112,8 @@ def wrapper_func(ticker, reference_year):
112
  fig_html, text_info = plot_volatility_bands(ticker, str(reference_year))
113
  return fig_html, text_info
114
  except Exception as e:
115
- return str(e), str(e) # Returning error message for both outputs
 
116
 
117
  iface = gr.Interface(
118
  fn=wrapper_func,
 
112
  fig_html, text_info = plot_volatility_bands(ticker, str(reference_year))
113
  return fig_html, text_info
114
  except Exception as e:
115
+ error_message = str(e)
116
+ return error_message, error_message
117
 
118
  iface = gr.Interface(
119
  fn=wrapper_func,