ogegadavis254 commited on
Commit
939c970
1 Parent(s): 65eab1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,7 +85,7 @@ if st.button("Generate Prediction"):
85
  f"Temperature {temperature}°C, Humidity {humidity}%, Wind Speed {wind_speed} km/h, UV Index {uv_index}, "
86
  f"Air Quality Index {air_quality_index}, Precipitation {precipitation} mm, Atmospheric Pressure {atmospheric_pressure} hPa. "
87
  f"Location: Latitude {latitude}, Longitude {longitude}."
88
- f"After analyzing that, I want you to visualize the data in the best way possible, might be in a table, using a chart or any other way so that it could be easy to understand."
89
  )
90
 
91
  try:
@@ -111,7 +111,7 @@ if st.button("Generate Prediction"):
111
 
112
  with st.spinner("Generating predictions..."):
113
  analysis_text = (
114
- f"Analyze the following text and extract a performance score (as a percentage) based on the climate conditions and their impact. "
115
  f"Please include a line that says 'Performance Score: XX%' in your response. Here's the text to analyze: {initial_text}"
116
  )
117
  analysis_response = call_ai_model_analysis(analysis_text)
 
85
  f"Temperature {temperature}°C, Humidity {humidity}%, Wind Speed {wind_speed} km/h, UV Index {uv_index}, "
86
  f"Air Quality Index {air_quality_index}, Precipitation {precipitation} mm, Atmospheric Pressure {atmospheric_pressure} hPa. "
87
  f"Location: Latitude {latitude}, Longitude {longitude}."
88
+ f"After analyzing that, I want you to visualize the data in the best way possible, should be in a table, so that it could be easy to understand."
89
  )
90
 
91
  try:
 
111
 
112
  with st.spinner("Generating predictions..."):
113
  analysis_text = (
114
+ f"Analyze the following text and only give me one short sentense performance score (as a percentage) based on the climate conditions and their impact. "
115
  f"Please include a line that says 'Performance Score: XX%' in your response. Here's the text to analyze: {initial_text}"
116
  )
117
  analysis_response = call_ai_model_analysis(analysis_text)