Spaces:
Sleeping
Sleeping
BMike10
commited on
Commit
•
8ca1f79
1
Parent(s):
2cf0ca8
Changes
Browse files
app.py
CHANGED
@@ -7,12 +7,12 @@ def random_response(message, history):
|
|
7 |
return random.choice(["Yes", "No"])
|
8 |
|
9 |
|
10 |
-
|
|
|
11 |
|
12 |
|
13 |
def predict(message, history):
|
14 |
-
outputs =
|
15 |
-
return_full_text=False)
|
16 |
|
17 |
return outputs
|
18 |
|
|
|
7 |
return random.choice(["Yes", "No"])
|
8 |
|
9 |
|
10 |
+
# model="michelebasilico/itaca-mistral-7b-v2-4bit")
|
11 |
+
model = pipeline("text-generation")
|
12 |
|
13 |
|
14 |
def predict(message, history):
|
15 |
+
outputs = model(message)[0]["generated_text"]
|
|
|
16 |
|
17 |
return outputs
|
18 |
|