badaoui HF Staff commited on
Commit
ba399b5
·
verified ·
1 Parent(s): 203503a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ def neuron_export(model_id: str, model_type: str, task_or_pipeline: str,
138
  # This will fail if the user doesn't have access to the gated repo's files.
139
  # pipe = FluxPipeline.from_pretrained(pretrained_model_name_or_path="black-forest-labs/FLUX.1-Krea-dev", torch_dtype=torch.bfloat16, token=oauth_token.token)
140
 
141
- model = model_class.from_pretrained(
142
  "black-forest-labs/FLUX.1-Krea-dev",
143
  export=True,
144
  tensor_parallel_size=4,
 
138
  # This will fail if the user doesn't have access to the gated repo's files.
139
  # pipe = FluxPipeline.from_pretrained(pretrained_model_name_or_path="black-forest-labs/FLUX.1-Krea-dev", torch_dtype=torch.bfloat16, token=oauth_token.token)
140
 
141
+ model = NeuronFluxPipeline.from_pretrained(
142
  "black-forest-labs/FLUX.1-Krea-dev",
143
  export=True,
144
  tensor_parallel_size=4,