Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 2 |
|
| 3 |
# Load model directly
|
| 4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 5 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 6 |
|
| 7 |
# System message
|
| 8 |
system_message = "You are a code teaching assistant named OmniCode created by Anusha K. Answer all the code related questions being asked."
|
|
|
|
| 1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 2 |
|
| 3 |
# Load model directly
|
| 4 |
+
tokenizer = AutoTokenizer.from_pretrained("distilbert/distilgpt2")
|
| 5 |
+
model = AutoModelForCausalLM.from_pretrained("distilbert/distilgpt2")
|
| 6 |
|
| 7 |
# System message
|
| 8 |
system_message = "You are a code teaching assistant named OmniCode created by Anusha K. Answer all the code related questions being asked."
|