Spaces:
Sleeping
Sleeping
Update app.py
Browse files447 unmodified lines44844945045145145245345484 unmodified lines539540541542542543544447 unmodified linesSECRET_CODE = "ilovemypythonprogram"BASE_API_URL = "https://my-model-api.shares.zrok.io/api/training/"
def predict_crypto_gradio(crypto_name, limit, timeframe_lstm, market_type, ohlcv_timeframe):def predict_crypto_gradio(crypto_name, limit, timeframe_lstm=12, market_type, ohlcv_timeframe): # Calculate validation_date now_utc = datetime.datetime.utcnow() if 'd' in ohlcv_timeframe.lower():84 unmodified lines inputs=[ gr.Dropdown(["BTC", "ETH"], label="Cryptocurrency"), gr.Number(value=500, label="Data Limit (e.g., 500 days/hours)", info="Number of historical data points to fetch."), gr.Slider(minimum=5, maximum=20, step=1, value=12, label="Timeframe (LSTM Timesteps)", info="Number of timesteps for the LSTM model."), gr.Radio(["bull", "bearish"], label="Market Type", value="bull", info="Predict for bullish (increase) or bearish (decrease) market."), gr.Dropdown(["1d", "12h", "6h", "4h", "2h"], label="OHLCV Timeframe", value="1d", info="Granularity of historical data (e.g., 1 day, 4 hours).") ],app.py+1-2