Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,9 @@ def respon(prompt, response, error):
|
|
162 |
def model_preference(res1, res2):
|
163 |
model_pref = f'''which model I should use chose any one and give justification why that model is better over another model and please answer in 2-3 lines only and it should looks like it was written by human and also model comparison should indicates the issues as well..
|
164 |
Model A: {res1}
|
165 |
-
Model B: {res2}
|
|
|
|
|
166 |
|
167 |
preference = chat_model.invoke(model_pref).content
|
168 |
return preference
|
|
|
162 |
def model_preference(res1, res2):
|
163 |
model_pref = f'''which model I should use chose any one and give justification why that model is better over another model and please answer in 2-3 lines only and it should looks like it was written by human and also model comparison should indicates the issues as well..
|
164 |
Model A: {res1}
|
165 |
+
Model B: {res2}
|
166 |
+
|
167 |
+
e.g. statement should start like this : Model A is preferable over Model B or Model B is more preferable over Model A'''
|
168 |
|
169 |
preference = chat_model.invoke(model_pref).content
|
170 |
return preference
|