Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import json
|
|
5 |
import torch
|
6 |
from huggingface_hub import hf_hub_download
|
7 |
|
8 |
-
model_weights_path = hf_hub_download(repo_id="
|
9 |
-
model_config_path = hf_hub_download(repo_id="
|
10 |
|
11 |
def translate(inputs):
|
12 |
with open(model_config_path, 'r') as f:
|
|
|
5 |
import torch
|
6 |
from huggingface_hub import hf_hub_download
|
7 |
|
8 |
+
model_weights_path = hf_hub_download(repo_id="towing/byt5-base-alibi-mt", filename="pytorch_model.bin")
|
9 |
+
model_config_path = hf_hub_download(repo_id="towing/byt5-base-alibi-mt", filename="config.json")
|
10 |
|
11 |
def translate(inputs):
|
12 |
with open(model_config_path, 'r') as f:
|