Spaces:
Runtime error
Runtime error
Commit
·
85a875d
1
Parent(s):
06e96f7
Remove Autoconfig from app
Browse files
app.py
CHANGED
@@ -8,15 +8,10 @@ import ipyvue
|
|
8 |
import reacton
|
9 |
from solara.alias import rv as v
|
10 |
from typing import Any, Callable, Optional, TypeVar, Union, cast, overload
|
11 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
12 |
-
|
13 |
-
config = AutoConfig.from_pretrained(
|
14 |
-
"replit/replit-code-v1_5-3b",
|
15 |
-
trust_remote_code=True
|
16 |
-
)
|
17 |
|
18 |
tokenizer = AutoTokenizer.from_pretrained('replit/replit-code-v1_5-3b', trust_remote_code=True)
|
19 |
-
model = AutoModelForCausalLM.from_pretrained('replit/replit-code-v1_5-3b',
|
20 |
|
21 |
def use_change(el: reacton.core.Element, on_value: Callable[[Any], Any], enabled=True):
|
22 |
"""Trigger a callback when a blur events occurs or the enter key is pressed."""
|
|
|
8 |
import reacton
|
9 |
from solara.alias import rv as v
|
10 |
from typing import Any, Callable, Optional, TypeVar, Union, cast, overload
|
11 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
tokenizer = AutoTokenizer.from_pretrained('replit/replit-code-v1_5-3b', trust_remote_code=True)
|
14 |
+
model = AutoModelForCausalLM.from_pretrained('replit/replit-code-v1_5-3b', trust_remote_code=True)
|
15 |
|
16 |
def use_change(el: reacton.core.Element, on_value: Callable[[Any], Any], enabled=True):
|
17 |
"""Trigger a callback when a blur events occurs or the enter key is pressed."""
|