Spaces:
Runtime error
Runtime error
ashioyajotham
commited on
Commit
•
dfbcf7f
1
Parent(s):
1f1c57f
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
fine_tuned_model = "ashioyajotham/results"
|
3 |
-
model =
|
4 |
# Load the tokenizer for the Falcon 7B model with remote code trust
|
5 |
tokenizer = AutoTokenizer.from_pretrained(fine_tuned_model, trust_remote_code=True)
|
6 |
|
|
|
1 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, FalconForCausalLM
|
2 |
fine_tuned_model = "ashioyajotham/results"
|
3 |
+
model = FalconForCausalLM.from_pretrained(fine_tuned_model,trust_remote_code=True)
|
4 |
# Load the tokenizer for the Falcon 7B model with remote code trust
|
5 |
tokenizer = AutoTokenizer.from_pretrained(fine_tuned_model, trust_remote_code=True)
|
6 |
|