Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,17 @@ from huggingface_hub import InferenceClient
|
|
3 |
import spaces
|
4 |
import transformers
|
5 |
from transformers import pipeline
|
|
|
6 |
|
7 |
|
8 |
|
9 |
@spaces.GPU
|
10 |
|
11 |
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
|
|
|
3 |
import spaces
|
4 |
import transformers
|
5 |
from transformers import pipeline
|
6 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
7 |
|
8 |
|
9 |
|
10 |
@spaces.GPU
|
11 |
|
12 |
|
13 |
+
# Load model directly
|
14 |
+
|
15 |
+
tokenizer = AutoTokenizer.from_pretrained("MTSAIR/MultiVerse_70B")
|
16 |
+
model = AutoModelForCausalLM.from_pretrained("MTSAIR/MultiVerse_70B")
|
17 |
|
18 |
|
19 |
|