BMike10 commited on
Commit
8ca1f79
1 Parent(s): 2cf0ca8
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,12 +7,12 @@ def random_response(message, history):
7
  return random.choice(["Yes", "No"])
8
 
9
 
10
- generator = pipeline(model="michelebasilico/itaca-mistral-7b-v2-4bit")
 
11
 
12
 
13
  def predict(message, history):
14
- outputs = generator(message, num_return_sequences=4,
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