Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
import numpy as np
|
| 5 |
import os
|
|
@@ -50,6 +51,7 @@ def update_horizon_label(timeframe):
|
|
| 50 |
'1h': 'hours', '4h': 'hours', '1d': 'days', '1wk': 'weeks'}
|
| 51 |
return gr.update(label=f"Horizon ({units.get(timeframe, 'days')})")
|
| 52 |
|
|
|
|
| 53 |
def run_dashboard(data_src, ticker, file_upload, timeframe, start_date, end_date, horizon, indicators,
|
| 54 |
include_sentiment, news_api_key, alpha_api_key, account_size, risk_percent, model,
|
| 55 |
hidden_units, n_layers, epochs, learning_rate, beta1, beta2, weight_decay, dropout,
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
+
import spaces
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
| 6 |
import os
|
|
|
|
| 51 |
'1h': 'hours', '4h': 'hours', '1d': 'days', '1wk': 'weeks'}
|
| 52 |
return gr.update(label=f"Horizon ({units.get(timeframe, 'days')})")
|
| 53 |
|
| 54 |
+
@spaces.GPU
|
| 55 |
def run_dashboard(data_src, ticker, file_upload, timeframe, start_date, end_date, horizon, indicators,
|
| 56 |
include_sentiment, news_api_key, alpha_api_key, account_size, risk_percent, model,
|
| 57 |
hidden_units, n_layers, epochs, learning_rate, beta1, beta2, weight_decay, dropout,
|