Surya152002 commited on
Commit
ca6560c
·
1 Parent(s): 66b02db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -13
app.py CHANGED
@@ -124,19 +124,6 @@ def main():
124
  # Make predictions
125
  predictions = model_fit.forecast(steps=len(input_data))
126
 
127
- # Display predictions
128
- st.header("Price Predictions")
129
- st.write(predictions)
130
-
131
- # Visualize results
132
- st.header("Price Prediction Chart")
133
- fig, ax = plt.subplots(figsize=(10, 6))
134
- ax.plot(input_data.index, input_data[coin_column], label='Actual')
135
- ax.plot(input_data.index, predictions, label='Predicted', linestyle='--')
136
- ax.set_title(f'{coin_choice} Price Prediction')
137
- ax.legend()
138
- st.pyplot(fig)
139
-
140
  # Chatbot live interaction
141
 
142
  st.header("Chat with Trading Bot")
@@ -155,6 +142,21 @@ def main():
155
  else:
156
  bot_reply = get_gpt3_response(user_message)
157
  st.write(f"Bot: {bot_reply}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
159
  if __name__ == "__main__":
160
  main()
 
124
  # Make predictions
125
  predictions = model_fit.forecast(steps=len(input_data))
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  # Chatbot live interaction
128
 
129
  st.header("Chat with Trading Bot")
 
142
  else:
143
  bot_reply = get_gpt3_response(user_message)
144
  st.write(f"Bot: {bot_reply}")
145
+
146
+ # Display predictions
147
+ st.header("Price Predictions")
148
+ st.write(predictions)
149
+
150
+ # Visualize results
151
+ st.header("Price Prediction Chart")
152
+ fig, ax = plt.subplots(figsize=(10, 6))
153
+ ax.plot(input_data.index, input_data[coin_column], label='Actual')
154
+ ax.plot(input_data.index, predictions, label='Predicted', linestyle='--')
155
+ ax.set_title(f'{coin_choice} Price Prediction')
156
+ ax.legend()
157
+ st.pyplot(fig)
158
+
159
+
160
 
161
  if __name__ == "__main__":
162
  main()