christophebourguignat commited on
Commit
229cfd1
1 Parent(s): c2c48ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ insurers = ["Caisse d'Epargne","Direct Assurance","Groupama",
19
  db_dict = {}
20
 
21
  def llm_response(insurer1, insurer2, question, gpt):
22
- if(gpt == "mistral-medium"):
23
  llm1 = ChatMistralAI(model=gpt)
24
  llm2 = ChatMistralAI(model=gpt)
25
  else:
@@ -68,10 +68,10 @@ demo = gr.Interface(llm_response,
68
  gr.Textbox(label="Question",
69
  info="More examples below :)",
70
  value="Quel est le montant maximum couvert pour un litige ?"),
71
- gr.Dropdown(choices=["gpt-3.5-turbo","gpt-4-turbo-preview","mistral-medium"],
72
  label="LLM",
73
  value="gpt-3.5-turbo",
74
- info="gpt-4 is more accurate, but a few seconds longer thant gpt-3. Mistral tends to speak english."),
75
  ],
76
  outputs=[gr.Textbox(label="Answer insurer 1"),
77
  gr.Textbox(label="Answer insurer 2")
 
19
  db_dict = {}
20
 
21
  def llm_response(insurer1, insurer2, question, gpt):
22
+ if(gpt == "mistral-large-latest"):
23
  llm1 = ChatMistralAI(model=gpt)
24
  llm2 = ChatMistralAI(model=gpt)
25
  else:
 
68
  gr.Textbox(label="Question",
69
  info="More examples below :)",
70
  value="Quel est le montant maximum couvert pour un litige ?"),
71
+ gr.Dropdown(choices=["gpt-3.5-turbo","gpt-4-turbo-preview","mistral-large-latest"],
72
  label="LLM",
73
  value="gpt-3.5-turbo",
74
+ info="Compare gpt-3, gpt-4, and mistral-large!"),
75
  ],
76
  outputs=[gr.Textbox(label="Answer insurer 1"),
77
  gr.Textbox(label="Answer insurer 2")