update code
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def main():
|
|
128 |
model_max_length=1000,
|
129 |
trust_remote_code=True,
|
130 |
)
|
131 |
-
if model_source == "Download":
|
132 |
base_model = AutoModelForSeq2SeqLM.from_pretrained(
|
133 |
checkpoint,
|
134 |
torch_dtype=torch.float32,
|
@@ -145,7 +145,7 @@ def main():
|
|
145 |
model_max_length=1000,
|
146 |
#cache_dir="model_cache"
|
147 |
)
|
148 |
-
if model_source == "Download":
|
149 |
base_model = AutoModelForSeq2SeqLM.from_pretrained(
|
150 |
checkpoint,
|
151 |
torch_dtype=torch.float32,
|
|
|
128 |
model_max_length=1000,
|
129 |
trust_remote_code=True,
|
130 |
)
|
131 |
+
if model_source == "Download model":
|
132 |
base_model = AutoModelForSeq2SeqLM.from_pretrained(
|
133 |
checkpoint,
|
134 |
torch_dtype=torch.float32,
|
|
|
145 |
model_max_length=1000,
|
146 |
#cache_dir="model_cache"
|
147 |
)
|
148 |
+
if model_source == "Download model":
|
149 |
base_model = AutoModelForSeq2SeqLM.from_pretrained(
|
150 |
checkpoint,
|
151 |
torch_dtype=torch.float32,
|