ryaalbr commited on
Commit
08a968f
·
1 Parent(s): e6254c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,7 +107,7 @@ def search(search_query):
107
 
108
 
109
 
110
- with gr.Blocks() as demo:
111
 
112
  with gr.Tab("Zero-Shot Classification"):
113
  labels = gr.State([]) # creates hidden component that can store a value and can be used as input/output; here, initial value is an empty list
@@ -147,7 +147,7 @@ with gr.Blocks() as demo:
147
  with gr.Row():
148
  get_btn_cap = gr.Button("Get Random Image").style(full_width=False)
149
  caption_btn = gr.Button("Create Caption").style(full_width=False)
150
- caption = gr.Textbox(label='Caption')
151
  get_btn_cap.click(fn=rand_image, outputs=im_cap)
152
  #im_cap.change(generate_text, inputs=im_cap, outputs=caption)
153
  caption_btn.click(generate_text, inputs=[im_cap, model_name], outputs=caption)
 
107
 
108
 
109
 
110
+ with gr.Blocks(css="#caption-text {font-size: 24px}") as demo:
111
 
112
  with gr.Tab("Zero-Shot Classification"):
113
  labels = gr.State([]) # creates hidden component that can store a value and can be used as input/output; here, initial value is an empty list
 
147
  with gr.Row():
148
  get_btn_cap = gr.Button("Get Random Image").style(full_width=False)
149
  caption_btn = gr.Button("Create Caption").style(full_width=False)
150
+ caption = gr.Textbox(label='Caption', elem_id="caption-text").style(container=False)
151
  get_btn_cap.click(fn=rand_image, outputs=im_cap)
152
  #im_cap.change(generate_text, inputs=im_cap, outputs=caption)
153
  caption_btn.click(generate_text, inputs=[im_cap, model_name], outputs=caption)