Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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",
|
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 |
|