Spaces:
Sleeping
Sleeping
BeveledCube
commited on
Commit
•
dda9b20
1
Parent(s):
218ed52
Testing
Browse files- .gitignore +1 -0
- main.py +2 -1
- models/mixtral.py +1 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
client.js
|
main.py
CHANGED
@@ -17,8 +17,9 @@ def test_route():
|
|
17 |
def receive_data():
|
18 |
data = request.get_json()
|
19 |
print("Prompt:", data["prompt"])
|
|
|
20 |
|
21 |
-
generated_text = mixtral.generate(
|
22 |
|
23 |
answer_data = { "answer": generated_text }
|
24 |
print("Response:", generated_text)
|
|
|
17 |
def receive_data():
|
18 |
data = request.get_json()
|
19 |
print("Prompt:", data["prompt"])
|
20 |
+
print("System:", data["prompt"])
|
21 |
|
22 |
+
generated_text = mixtral.generate("helo", "You are friendly", ["helo"], False, False)
|
23 |
|
24 |
answer_data = { "answer": generated_text }
|
25 |
print("Response:", generated_text)
|
models/mixtral.py
CHANGED
@@ -47,4 +47,5 @@ def generate(
|
|
47 |
for response in stream:
|
48 |
output += response.token.text
|
49 |
yield output
|
|
|
50 |
return output
|
|
|
47 |
for response in stream:
|
48 |
output += response.token.text
|
49 |
yield output
|
50 |
+
|
51 |
return output
|