merve HF staff commited on
Commit
bbb97d0
1 Parent(s): 5f50312

change layout a bit

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -65,11 +65,8 @@ for detailed information about how to use and fine-tune PaliGemma and PaliGemma
65
  with gr.Blocks(css="style.css") as demo:
66
  gr.Markdown(INTRO_TEXT)
67
  with gr.Column():
 
68
  question = gr.Text(label="Question")
69
- image = gr.Image(label="Input Image", type="pil", height=500)
70
- caption_btn = gr.Button(value="Submit")
71
- text_output = gr.Text(label="Text Output")
72
-
73
  tokens = gr.Slider(
74
  label="Max New Tokens",
75
  info="Set to larger for longer generation.",
@@ -78,6 +75,12 @@ with gr.Blocks(css="style.css") as demo:
78
  value=80,
79
  step=10,
80
  )
 
 
 
 
 
 
81
 
82
  caption_inputs = [
83
  question,
 
65
  with gr.Blocks(css="style.css") as demo:
66
  gr.Markdown(INTRO_TEXT)
67
  with gr.Column():
68
+ image = gr.Image(label="Input Image", type="pil", height=400)
69
  question = gr.Text(label="Question")
 
 
 
 
70
  tokens = gr.Slider(
71
  label="Max New Tokens",
72
  info="Set to larger for longer generation.",
 
75
  value=80,
76
  step=10,
77
  )
78
+
79
+
80
+ caption_btn = gr.Button(value="Submit")
81
+ text_output = gr.Text(label="Text Output")
82
+
83
+
84
 
85
  caption_inputs = [
86
  question,