Spaces:
Sleeping
Sleeping
Update app.py
Browse files345 unmodified lines3463473483493503513524 unmodified lines357358359360361362363345 unmodified linesexcept Exception as err:print(f"An error occurred: {err}")# 1. Send PENDING status# Call the train_full function to get predictionspredicted_values = train_full(limit, tsym, crypto_name, timeframe)4 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,345 unmodified lines3463473483493503513524 unmodified lines357358359360361362363345 unmodified linesexcept Exception as err:print(f"An error occurred: {err}")# 1. Send PENDING statuspredictionID = result.get("id")# Call the train_full function to get predictionspredicted_values = train_full(limit, tsym, crypto_name, timeframe)4 unmodified lines# 1. Send TRAINED statustrained_url = f"{BASE_API_URL}insert-trained/"trained_data = {"pendingId": predictionID,"secret": SECRET_CODE,"crypto_name": crypto_name,"timeframe": timeframe,
app.py+2-2