nightfury commited on
Commit
be70c64
·
verified ·
1 Parent(s): d7b6ad1

Update appli.py

Browse files
Files changed (1) hide show
  1. appli.py +3 -2
appli.py CHANGED
@@ -26,7 +26,7 @@ config.flavor_intermediate_count = 512
26
  config.blip_num_beams = 64
27
  ci = Interrogator(config)
28
 
29
-
30
  def inference(image, mode, best_max_flavors):
31
  image = image.convert('RGB')
32
  if mode == 'best':
@@ -54,4 +54,5 @@ with gr.Blocks() as demo:
54
  concurrency_limit=10
55
  )
56
 
57
- demo.queue().launch()
 
 
26
  config.blip_num_beams = 64
27
  ci = Interrogator(config)
28
 
29
+ @spaces.GPU
30
  def inference(image, mode, best_max_flavors):
31
  image = image.convert('RGB')
32
  if mode == 'best':
 
54
  concurrency_limit=10
55
  )
56
 
57
+ demo.launch(server_name="0.0.0.0")
58
+ #demo.queue().launch()