Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ examples = [["How are you?"]]
|
|
| 9 |
|
| 10 |
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-40b-instruct")
|
| 12 |
-
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-40b-instruct")
|
| 13 |
-
|
| 14 |
|
| 15 |
def predict(input, history=[]):
|
| 16 |
# tokenize the new input sentence
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-40b-instruct")
|
| 12 |
+
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-40b-instruct", trust_remote_code=True)
|
| 13 |
+
|
| 14 |
|
| 15 |
def predict(input, history=[]):
|
| 16 |
# tokenize the new input sentence
|