Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
b8d8555
1
Parent(s):
6a7a788
more tokens
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def generate_response(audio):
|
|
75 |
"For example, 'Magic 8 Ball, should I get a dog?', 'A dog is ready for you but are you ready for the dog?'")},
|
76 |
{"role": "user", "content": f"Magic 8 Ball please answer this question - {question}"}]
|
77 |
|
78 |
-
response = client.chat_completion(messages, max_tokens=
|
79 |
model="mistralai/Mistral-7B-Instruct-v0.3")
|
80 |
response = response.choices[0].message.content.replace("Magic 8 Ball", "")
|
81 |
return response, None, None
|
|
|
75 |
"For example, 'Magic 8 Ball, should I get a dog?', 'A dog is ready for you but are you ready for the dog?'")},
|
76 |
{"role": "user", "content": f"Magic 8 Ball please answer this question - {question}"}]
|
77 |
|
78 |
+
response = client.chat_completion(messages, max_tokens=64, seed=random.randint(1, 5000),
|
79 |
model="mistralai/Mistral-7B-Instruct-v0.3")
|
80 |
response = response.choices[0].message.content.replace("Magic 8 Ball", "")
|
81 |
return response, None, None
|