hanzla javaid commited on
Commit
92590df
·
1 Parent(s): def2e7f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ def get_model_response(model_name, message):
30
 
31
 
32
  def chat(message, history, model1, model2):
33
- response1 = get_model_response(model1, message)
34
- response2 = get_model_response(model2, message)
35
  return [(message, f"{model1}: {response1}\n\n{model2}: {response2}")]
36
 
37
 
 
30
 
31
 
32
  def chat(message, history, model1, model2):
33
+ response1 = get_model_response(model1, {"role":"user","content":message})
34
+ response2 = get_model_response(model2, {"role":"user","content":message})
35
  return [(message, f"{model1}: {response1}\n\n{model2}: {response2}")]
36
 
37