Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def generate_dynamic_prediction(df, initial_prediction, future_hours=24):
|
|
| 92 |
# Réduire green_prediction pour qu'elle ait la même longueur que future_timestamps
|
| 93 |
green_prediction = green_prediction[:len(future_timestamps)]
|
| 94 |
|
| 95 |
-
return green_prediction
|
| 96 |
|
| 97 |
# Configuration des dates
|
| 98 |
end_time = datetime.now()
|
|
@@ -125,7 +125,7 @@ for coin, price_data in crypto_prices.items():
|
|
| 125 |
initial_prediction = predictions["Trend"]
|
| 126 |
|
| 127 |
# Générer la prédiction dynamique (verte)
|
| 128 |
-
green_prediction = generate_dynamic_prediction(df, initial_prediction, future_hours=24)
|
| 129 |
|
| 130 |
# Affichage des résultats
|
| 131 |
st.write(f"#### {coin} - Prix et Prédictions")
|
|
|
|
| 92 |
# Réduire green_prediction pour qu'elle ait la même longueur que future_timestamps
|
| 93 |
green_prediction = green_prediction[:len(future_timestamps)]
|
| 94 |
|
| 95 |
+
return green_prediction, future_timestamps
|
| 96 |
|
| 97 |
# Configuration des dates
|
| 98 |
end_time = datetime.now()
|
|
|
|
| 125 |
initial_prediction = predictions["Trend"]
|
| 126 |
|
| 127 |
# Générer la prédiction dynamique (verte)
|
| 128 |
+
green_prediction, future_timestamps = generate_dynamic_prediction(df, initial_prediction, future_hours=24)
|
| 129 |
|
| 130 |
# Affichage des résultats
|
| 131 |
st.write(f"#### {coin} - Prix et Prédictions")
|