doevent commited on
Commit
ea625be
1 Parent(s): a896eb4

Update settings launch

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -6,12 +6,7 @@ from torchvision.transforms.functional import InterpolationMode
6
 
7
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
8
 
9
-
10
-
11
-
12
-
13
  import gradio as gr
14
-
15
  from models.blip import blip_decoder
16
 
17
  image_size = 384
@@ -79,4 +74,4 @@ gr.Interface(inference,
79
  article=article,
80
  examples=[['starrynight.jpeg',"Image Captioning","None","Nucleus sampling"]],
81
  allow_flagging='never',
82
- cache_examples=False).queue(concurrency_count=1, api_open=False).launch(show_api=False, show_error=True)
 
6
 
7
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
8
 
 
 
 
 
9
  import gradio as gr
 
10
  from models.blip import blip_decoder
11
 
12
  image_size = 384
 
74
  article=article,
75
  examples=[['starrynight.jpeg',"Image Captioning","None","Nucleus sampling"]],
76
  allow_flagging='never',
77
+ cache_examples=False).queue(concurrency_count=1).launch(show_error=True)