Vihang28 commited on
Commit
a157d93
·
verified ·
1 Parent(s): 44ee8e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -49,14 +49,15 @@ title = "Compare the Graphs"
49
  block = gr.Blocks(title=title)
50
  with block:
51
  gr.Markdown(f'<h1 style="text-align: center;">{title}</h1>')
52
- with gr.Row():
53
- file_input = gr.File(type="filepath")
54
- output_img_name = gr.Textbox(label="All Image names")
55
- image_name = gr.Textbox(label="Mention Image to Show")
56
- output_img = gr.Image(type="filepath",interactive="True")
57
- with gr.Row():
58
- upload_button = gr.Button(value="Show Image Names")
59
- show_button = gr.Button(value="Show Selected Image")
 
60
 
61
 
62
  upload_button.click(pdf_to_img, inputs=file_input, outputs=output_img_name)
 
49
  block = gr.Blocks(title=title)
50
  with block:
51
  gr.Markdown(f'<h1 style="text-align: center;">{title}</h1>')
52
+ with gr.Column():
53
+ with gr.Row():
54
+ file_input = gr.File(type="filepath")
55
+ output_img_name = gr.Textbox(label="All Image names")
56
+ image_name = gr.Textbox(label="Mention Image to Show")
57
+ output_img = gr.Image(type="filepath",interactive=True)
58
+ with gr.Row():
59
+ upload_button = gr.Button(value="Show Image Names")
60
+ show_button = gr.Button(value="Show Selected Image")
61
 
62
 
63
  upload_button.click(pdf_to_img, inputs=file_input, outputs=output_img_name)