budhadityac24 commited on
Commit
4245bd4
1 Parent(s): 0f420a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -133,11 +133,11 @@ def get_response(input_text,client):
133
  messages=[
134
  {
135
  "role": "system",
136
- "content": "You are a helpful assistant. You are given the weather details in json format. Read the data and give a brief description of the weather and then answer the question. All temperatures are in kelvin. Only mention details about the weather. If the JSON mentions data fetch error, only give a polite error message and tell the user to ask questions related to the weather of a place. "
137
  },
138
  {
139
  "role": "user",
140
- "content": json.dumps(output)
141
  }
142
  ],
143
  temperature=0.25,
 
133
  messages=[
134
  {
135
  "role": "system",
136
+ "content": "You are a helpful assistant. You are given the weather details in json format. Read the data and give a brief description of the weather and then answer the question. Use a professional but fun tone when you say, and answer the question. All temperatures are in kelvin. Only mention details about the weather. If the JSON mentions data fetch error, only give a polite error message and tell the user to ask questions related to the weather of a place. "
137
  },
138
  {
139
  "role": "user",
140
+ "content": json.dumps(output)+ "input_text"
141
  }
142
  ],
143
  temperature=0.25,