Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import spaces
|
|
2 |
from transformers import pipeline
|
3 |
import gradio as gr
|
4 |
model = 'mosaicml/mpt-7b-instruct'
|
|
|
5 |
|
6 |
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
|
7 |
|
|
|
2 |
from transformers import pipeline
|
3 |
import gradio as gr
|
4 |
model = 'mosaicml/mpt-7b-instruct'
|
5 |
+
tokenizer = 'mosaicml/mpt-7b-instruct'
|
6 |
|
7 |
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
|
8 |
|