Spaces:
Sleeping
Sleeping
Amitontheweb
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -160,8 +160,8 @@ def select_model(model_selected):
|
|
160 |
def load_model ():
|
161 |
|
162 |
global model_name
|
163 |
-
|
164 |
-
|
165 |
|
166 |
|
167 |
|
|
|
160 |
def load_model ():
|
161 |
|
162 |
global model_name
|
163 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
164 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
165 |
|
166 |
|
167 |
|