Spaces:
Sleeping
Sleeping
Update app.py
Browse files322 unmodified lines32332432532632732832927 unmodified lines3573583593603613623639 unmodified lines373374375376377378379380381382322 unmodified linesdata_to_send = {"timeframe": timeframe,"crypto_name": crypto_name,"tysm": tysm,}# 2. Define the target URL27 unmodified lines# 1. Send TRAINED statustrained_url = f"{BASE_API_URL}insert-trained/"trained_data = {"pendingId": result.json().get("id"),"secret": SECRET_CODE,"crypto_name": crypto_name,"timeframe": timeframe,9 unmodified linesprint(f"Error sending trained status: {e}")output_str += f"\nError sending trained status to backend: {e}"# Format the predicted values for display in Gradiooutput_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_string322 unmodified lines32332432532632732832927 unmodified lines3573583593603613623639 unmodified lines373374375376377378379380381322 unmodified linesdata_to_send = {"timeframe": timeframe,"crypto_name": crypto_name,"tysm": tsym,}# 2. Define the target URL27 unmodified lines# 1. Send TRAINED statustrained_url = f"{BASE_API_URL}insert-trained/"trained_data = {"pendingId": result.get("id"),"secret": SECRET_CODE,"crypto_name": crypto_name,"timeframe": timeframe,9 unmodified linesprint(f"Error sending trained status: {e}")output_str += f"\nError sending trained status to backend: {e}"# Format the predicted values for display in Gradioreturn True
app.py+5-6