ogegadavis254 commited on
Commit
8be793a
·
verified ·
1 Parent(s): 0c48822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -139,11 +139,11 @@ if st.button("Generate Prediction"):
139
  st.markdown("**Predicted Impact on Performance and Infrastructure:**")
140
  st.markdown(generated_text.strip())
141
 
142
- # Generate a simple chart
143
  fig, ax = plt.subplots()
144
- ax.bar(results_data['Condition'], results_data['Value'])
145
  ax.set_ylabel('Values')
146
- ax.set_title('Climate Conditions Impact')
147
  st.pyplot(fig)
148
 
149
  except ValueError as ve:
 
139
  st.markdown("**Predicted Impact on Performance and Infrastructure:**")
140
  st.markdown(generated_text.strip())
141
 
142
+ # Generate a line chart to show the relationship between temperature and humidity
143
  fig, ax = plt.subplots()
144
+ ax.plot(results_data['Condition'], results_data['Value'], marker='o')
145
  ax.set_ylabel('Values')
146
+ ax.set_title('Relationship Between Climate Conditions')
147
  st.pyplot(fig)
148
 
149
  except ValueError as ve: