Spaces:
Paused
Paused
Update app.py
Browse files116 unmodified lines1171181191201211227 unmodified lines13013113213313413513614 unmodified lines151152153154116 unmodified lines# Make predictionspredictions = generate_predictions(model, stock_data[['Close', 'RSI', 'VWAP', 'BBU_20_2.0', 'BBM_20_2.0', 'BBL_20_2.0']], scaler, sequence_length)# Create the Alpaca clientclient = create_client(api_key, api_secret, base_url)7 unmodified linesresults.append([ticker,[order.json() for order in orders]])print("error in returning")return results14 unmodified lines)if __name__ == "__main__":interface.launch(debug=True, share=True)116 unmodified lines1171181191201211221231241251261271281297 unmodified lines13713813914014114214314414514614714 unmodified lines162163164165116 unmodified lines# Make predictionspredictions = generate_predictions(model, stock_data[['Close', 'RSI', 'VWAP', 'BBU_20_2.0', 'BBM_20_2.0', 'BBL_20_2.0']], scaler, sequence_length)predict_value = 0for i in range(len(predictions)):if not np.isnan(predictions[i]):predict_value = predictions[i]break# Create the Alpaca clientclient = create_client(api_key, api_secret, base_url)7 unmodified linesresults.append([ticker,[order.json() for order in orders],"predictions : ",predict_value,])print("error in returning")return results14 unmodified lines)if __name__ == "__main__":interface.launch(debug=True, share=True)
app.py+13-2