Spaces:
Runtime error
Runtime error
Abhiverse01
commited on
Commit
•
77e0b1e
1
Parent(s):
4685414
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Load model directly
|
2 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
3 |
+
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("loubnabnl/santacoder-code-to-text", trust_remote_code=True)
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("loubnabnl/santacoder-code-to-text", trust_remote_code=True)
|