dibend commited on
Commit
2d63453
1 Parent(s): 19e5d93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -69,10 +69,12 @@ def main_interface(ticker, period):
69
  plot_filename = plot_data(data, buy_signals, sell_signals)
70
  return plot_filename
71
 
 
72
  iface = gr.Interface(fn=main_interface,
73
  inputs=[gr.Textbox(label="Asset Ticker"), gr.Textbox(label="Period: (e.g., 1y, 2y, 5y)")],
74
- outputs=gr.Image(type="file"),
75
  title="Stock Analysis Tool",
76
  description="Enter a stock ticker and period to analyze buy/sell signals based on RSI and MACD.")
77
 
 
78
  iface.launch()
 
69
  plot_filename = plot_data(data, buy_signals, sell_signals)
70
  return plot_filename
71
 
72
+ # Step 7: Set Up Gradio Interface with corrected type parameter
73
  iface = gr.Interface(fn=main_interface,
74
  inputs=[gr.Textbox(label="Asset Ticker"), gr.Textbox(label="Period: (e.g., 1y, 2y, 5y)")],
75
+ outputs=gr.Image(type="filepath"), # Corrected type parameter
76
  title="Stock Analysis Tool",
77
  description="Enter a stock ticker and period to analyze buy/sell signals based on RSI and MACD.")
78
 
79
+
80
  iface.launch()