alexnasa commited on
Commit
42876b6
·
verified ·
1 Parent(s): b8e49c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,6 @@ import spaces
21
 
22
  import tempfile
23
  from PIL import Image
24
- import torch
25
  import gradio as gr
26
  import string
27
  import random, time, math
@@ -40,6 +39,7 @@ from src.flux.generate import generate_from_test_sample, seed_everything
40
  # import yaml
41
  # import numpy as np
42
  # from huggingface_hub import snapshot_download, hf_hub_download
 
43
 
44
  # # FLUX.1-dev
45
  # snapshot_download(
@@ -543,5 +543,5 @@ if __name__ == "__main__":
543
  vlm_btn_2.click(vlm_img_caption, inputs=[image_2], outputs=[caption_2])
544
 
545
 
546
-
547
  demo.launch(share=True)
 
21
 
22
  import tempfile
23
  from PIL import Image
 
24
  import gradio as gr
25
  import string
26
  import random, time, math
 
39
  # import yaml
40
  # import numpy as np
41
  # from huggingface_hub import snapshot_download, hf_hub_download
42
+ import torch
43
 
44
  # # FLUX.1-dev
45
  # snapshot_download(
 
543
  vlm_btn_2.click(vlm_img_caption, inputs=[image_2], outputs=[caption_2])
544
 
545
 
546
+ demo.queue()
547
  demo.launch(share=True)