Ghosthash commited on
Commit
fc7b7fb
·
verified ·
1 Parent(s): 5af1144

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,10 +29,10 @@ load_dataset("Ghosthash/Tweets")
29
 
30
  from transformers import pipeline
31
 
32
- pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.8-mistral-7b-v02", max_new_tokens=1000)
33
  text = st.text_input("enter text here")
34
 
35
  if text:
36
- response = pipe(text)
37
  st.json(response)
38
 
 
29
 
30
  from transformers import pipeline
31
 
32
+ pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.8-mistral-7b-v02", device=1)
33
  text = st.text_input("enter text here")
34
 
35
  if text:
36
+ response = pipe(text, max_new_tokens=1000)
37
  st.json(response)
38