Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
1 |
+
from transformers import AutoModel, AutoTokenizer
|
2 |
|
3 |
+
# Replace 'Funybubble/replit-code-instruct-quanatized' with the actual model name
|
4 |
+
model_name = 'Funybubble/replit-code-instruct-quanatized'
|
5 |
|
6 |
+
# Load the tokenizer and model
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
+
model = AutoModel.from_pretrained(model_name)
|
9 |
+
|
10 |
+
# You can use the tokenizer and model as needed
|