Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ iface = gr.Interface(
|
|
| 71 |
print("Initialized")
|
| 72 |
|
| 73 |
model = AutoModelForCausalLM.from_pretrained(
|
| 74 |
-
model_id, token=huggingface_token ,torch_dtype=dtype,device_map=device
|
| 75 |
)
|
| 76 |
|
| 77 |
def generate_text(messages):
|
|
|
|
| 71 |
print("Initialized")
|
| 72 |
|
| 73 |
model = AutoModelForCausalLM.from_pretrained(
|
| 74 |
+
model_id, token=huggingface_token ,torch_dtype=dtype,device_map=device,trust_remote_code=True
|
| 75 |
)
|
| 76 |
|
| 77 |
def generate_text(messages):
|