Zeel commited on
Commit
c7cd7b8
·
verified ·
1 Parent(s): 58585d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -19
app.py CHANGED
@@ -237,25 +237,9 @@ import uuid
237
 
238
  {new_line.join(['# '+line for line in prompt.strip().split(new_line)])}
239
  """
240
- query = f"""I have a pandas dataframe data of PM2.5 and PM10.
241
- * The columns are 'Timestamp', 'station', 'PM2.5', 'PM10', 'address', 'city', 'latitude', 'longitude',and 'state'.
242
- * Frequency of data is daily.
243
- * `pollution` generally means `PM2.5`.
244
- * You already have df, so don't read the csv file
245
- * Don't print anything, but save result in a variable `answer` and make it global.
246
- * Unless explicitly mentioned, don't consider the result as a plot.
247
- * PM2.5 guidelines: India: 60, WHO: 15.
248
- * PM10 guidelines: India: 100, WHO: 50.
249
- * If result is a plot, show the India and WHO guidelines in the plot.
250
- * If result is a plot make it in tight layout, save it and save path in `answer`. Example: `answer='plot.png'`. Use uuid to save the plot.
251
- * If result is a plot, rotate x-axis tick labels by 45 degrees,
252
- * If result is not a plot, save it as a string in `answer`. Example: `answer='The city is Mumbai'`
253
- * I have a geopandas.geodataframe india containining the coordinates required to plot Indian Map with states.
254
- * If the query asks you to plot on India Map, use that geodataframe to plot and then add more points as per the requirements using the similar code as follows : v = ax.scatter(df['longitude'], df['latitude']). If the colorbar is required, use the following code : plt.colorbar(v)
255
- * If the query asks you to plot on India Map plot the India Map in Beige color
256
- * Whenever you do any sort of aggregation, report the corresponding standard deviation, standard error and the number of data points for that aggregation.
257
- * Whenever you're reporting a floating point number, round it to 2 decimal places.
258
- * Always report the unit of the data. Example: `The average PM2.5 is 45.67 µg/m³`
259
 
260
  Complete the following code.
261
 
 
237
 
238
  {new_line.join(['# '+line for line in prompt.strip().split(new_line)])}
239
  """
240
+ with open("system_prompt.txt") as f:
241
+ system_prompt = f.read().strip()
242
+ query = f"""{system_prompt}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
  Complete the following code.
245