alex-abb commited on
Commit
cb4c967
1 Parent(s): 38a8380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- pipe = pipeline("text-generation", model="MTSAIR/MultiVerse_70B")
 
 
 
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