wjjessen commited on
Commit
b8f16a6
1 Parent(s): d124ecd

update code

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,