ymgong3616 commited on
Commit
efcc35d
·
1 Parent(s): a1dd728

update space

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,7 +73,7 @@ def generate_response(audio):
73
  """)},
74
  {"role": "user", "content": f"Hey how can I help you today?"}]
75
 
76
- response = client.chat_completion(messages, max_tokens=64, seed=random.randint(1, 5000), model="mistralai/Mistral-7B-Instruct-v0.3")
77
  response = response.choices[0].message.content.replace("Magic 8 Ball", "")
78
  return response, None, None
79
 
@@ -95,7 +95,7 @@ def read_response(answer):
95
  prompt_input_ids=prompt.input_ids,
96
  streamer=streamer,
97
  do_sample=True,
98
- temperature=0.3,
99
  min_new_tokens=10,
100
  )
101
 
 
73
  """)},
74
  {"role": "user", "content": f"Hey how can I help you today?"}]
75
 
76
+ response = client.chat_completion(messages, max_tokens=200, seed=random.randint(1, 5000), model="mistralai/Mistral-7B-Instruct-v0.3")
77
  response = response.choices[0].message.content.replace("Magic 8 Ball", "")
78
  return response, None, None
79
 
 
95
  prompt_input_ids=prompt.input_ids,
96
  streamer=streamer,
97
  do_sample=True,
98
+ temperature=1,
99
  min_new_tokens=10,
100
  )
101