Spaces:
Runtime error
Runtime error
Give a warning: "No available symbols in `Symbols` box." in figure box.
Browse files
utils.py
CHANGED
|
@@ -57,6 +57,8 @@ def Kline_predict_plot(model_id, symbols, user_opinion, frequency, feature_satur
|
|
| 57 |
bars = pd.DataFrame(vi)
|
| 58 |
bars.index = bars.index.map(pd.Timestamp)
|
| 59 |
figs.append(plot_Klines_fig(bars, codei))
|
|
|
|
|
|
|
| 60 |
return ','.join(coins_not_available) if len(coins_not_available) > 0 else 'No one', figs
|
| 61 |
|
| 62 |
|
|
|
|
| 57 |
bars = pd.DataFrame(vi)
|
| 58 |
bars.index = bars.index.map(pd.Timestamp)
|
| 59 |
figs.append(plot_Klines_fig(bars, codei))
|
| 60 |
+
if len(figs) < 1:
|
| 61 |
+
figs = [plot_txt('No available symbols in `Symbols` box.')]
|
| 62 |
return ','.join(coins_not_available) if len(coins_not_available) > 0 else 'No one', figs
|
| 63 |
|
| 64 |
|