nyanko7 commited on
Commit
1312362
1 Parent(s): e3ea411

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
- # import os
2
- # import spaces
3
  from dataclasses import dataclass
4
 
5
  import gradio as gr
@@ -730,7 +730,7 @@ print(result)
730
  # model = Flux().to(dtype=torch.bfloat16, device="cuda")
731
  # result = model.load_state_dict(load_file("/storage/dev/nyanko/flux-dev/flux1-dev.sft"))
732
 
733
- # @spaces.GPU
734
  @torch.inference_mode()
735
  def generate_image(
736
  prompt, width, height, guidance, seed,
 
1
+ import os
2
+ import spaces
3
  from dataclasses import dataclass
4
 
5
  import gradio as gr
 
730
  # model = Flux().to(dtype=torch.bfloat16, device="cuda")
731
  # result = model.load_state_dict(load_file("/storage/dev/nyanko/flux-dev/flux1-dev.sft"))
732
 
733
+ @spaces.GPU
734
  @torch.inference_mode()
735
  def generate_image(
736
  prompt, width, height, guidance, seed,