Spaces:
Sleeping
Sleeping
Update app.py
Browse files322 unmodified lines32332432532632632732832927 unmodified lines3573583593603603613623639 unmodified lines373374375376377378379376377378379380381322 unmodified lines data_to_send = { "timeframe": timeframe, "crypto_name": crypto_name, "tysm": tysm, "tysm": tsym,}
# 2. Define the target URL27 unmodified lines # 1. Send TRAINED status trained_url = f"{BASE_API_URL}insert-trained/" trained_data = { "pendingId": result.json().get("id"), "pendingId": result.get("id"), "secret": SECRET_CODE, "crypto_name": crypto_name, "timeframe": timeframe,9 unmodified lines print(f"Error sending trained status: {e}") output_str += f"\nError sending trained status to backend: {e}" # Format the predicted values for display in Gradio output_string = f"--- Next {future_forcecast_steps}-Day Future Forecast ---\n" for day, price in enumerate(predicted_values, 1): output_string += f"Day {day}: {price:.2f}\n" return output_string return True
app.py+5-6