sitammeur commited on
Commit
36f34bd
·
verified ·
1 Parent(s): ac90cb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -13,12 +13,18 @@ from src.app.response import caption_image
13
  # Image and input parameters
14
  image = gr.Image(type="pil", label="Image")
15
  max_new_tokens = gr.Slider(
16
- minimum=20, maximum=160, step=10, value=80, label="Max Tokens"
 
 
 
 
 
 
17
  )
18
  sampling = gr.Checkbox(value=False, label="Sampling")
19
 
20
  # Output for the interface
21
- answer = gr.Textbox(label="Predicted answer", show_label=True, show_copy_button=True)
22
 
23
  # Examples for the interface
24
  examples = [
 
13
  # Image and input parameters
14
  image = gr.Image(type="pil", label="Image")
15
  max_new_tokens = gr.Slider(
16
+ minimum=20,
17
+ maximum=160,
18
+ step=1,
19
+ value=80,
20
+ step=10,
21
+ label="Max Tokens",
22
+ info="Use larger values for detailed captions",
23
  )
24
  sampling = gr.Checkbox(value=False, label="Sampling")
25
 
26
  # Output for the interface
27
+ answer = gr.Textbox(label="Generated Caption", show_label=True, show_copy_button=True)
28
 
29
  # Examples for the interface
30
  examples = [