mouliraj56 commited on
Commit
df66752
1 Parent(s): 4f4fc8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,8 +79,8 @@ def forecast_stock(ticker, period, interval):
79
 
80
 
81
  except Exception as e:
82
- print(f"An error occurred: {e}")
83
- return False # Indicate error
84
 
85
 
86
  tickers_info="""
@@ -131,7 +131,7 @@ with gr.Blocks() as demo:
131
  [
132
  gr.Textbox(label="Ticker", placeholder="e.g., AAPL, MSFT, GOOG"),
133
  gr.Textbox(label="Period", placeholder="e.g., 1mo, 5y, max"),
134
- gr.Textbox(label="Interval", placeholder="e.g., 1d, 1wk, 1h"),
135
 
136
  ],
137
  "plot", # Output type
 
79
 
80
 
81
  except Exception as e:
82
+ er=f"An error occurred: {e}"
83
+ return er # Indicate error
84
 
85
 
86
  tickers_info="""
 
131
  [
132
  gr.Textbox(label="Ticker", placeholder="e.g., AAPL, MSFT, GOOG"),
133
  gr.Textbox(label="Period", placeholder="e.g., 1mo, 5y, max"),
134
+ gr.Textbox(label="Interval", placeholder="e.g., 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo"),
135
 
136
  ],
137
  "plot", # Output type