kael558 commited on
Commit
6e223a1
1 Parent(s): 36309df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -50,6 +50,13 @@ def add_text(text, image, image_process_mode, request: gr.Request):
50
 
51
  image_blocks = gr.Blocks()
52
  with image_blocks as demo:
 
 
 
 
 
 
 
53
  imagebox = gr.Image(type="pil")
54
  submit_btn = gr.Button(value="Send", variant="primary", interactive=False)
55
  submit_btn.click(
 
50
 
51
  image_blocks = gr.Blocks()
52
  with image_blocks as demo:
53
+ image_process_mode = gr.Radio(
54
+ ["Crop", "Resize", "Pad", "Default"],
55
+ value="Default",
56
+ label="Preprocess for non-square image",
57
+ visible=False,
58
+ )
59
+ textbox = gr.Textbox(show_label=False, placeholder="Enter text and press ENTER", container=False)
60
  imagebox = gr.Image(type="pil")
61
  submit_btn = gr.Button(value="Send", variant="primary", interactive=False)
62
  submit_btn.click(