DeMaking commited on
Commit
682ccae
·
verified ·
1 Parent(s): 4fd3d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -44,13 +44,14 @@ def generate_response(text):
44
  print(f"Messages: {messages}, ", f"current time: {current_time_gmt()}")
45
 
46
  completion = client.chat.completions.create(
47
- model="microsoft/Phi-3.5-mini-instruct",
 
48
  messages=messages,
49
- max_tokens=500,
50
  temperature=0.5,
51
  top_p=0.7
52
  )
53
- print("\ncompletion: ", completion.choices[0].message.content, f"\ncurrent time: {current_time_gmt()}")
54
  return completion.choices[0].message.content
55
 
56
  return "Sorry, I only support Hebrew and English."
 
44
  print(f"Messages: {messages}, ", f"current time: {current_time_gmt()}")
45
 
46
  completion = client.chat.completions.create(
47
+ #model="mistralai/Mistral-Nemo-Instruct-2407",
48
+ model="microsoft/Phi-3.5-mini-instruct",
49
  messages=messages,
50
+ max_tokens=2048,
51
  temperature=0.5,
52
  top_p=0.7
53
  )
54
+ #print("\ncompletion: ", completion.choices[0].message.content, f"\ncurrent time: {current_time_gmt()}")
55
  return completion.choices[0].message.content
56
 
57
  return "Sorry, I only support Hebrew and English."