Vihang28 commited on
Commit
0cf80cf
·
verified ·
1 Parent(s): ceeef9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,7 +31,7 @@ with block:
31
  with gr.Row():
32
  with gr.Row():
33
  with gr.Column():
34
- file_input = gr.File(type="filepath")
35
  upload_button = gr.Button(value="Show Image Names")
36
  output_img_name = gr.Textbox(label="All Image names")
37
  with gr.Row():
@@ -41,9 +41,10 @@ with block:
41
  output_img = gr.Image(type="filepath")
42
  upload_button.click(pdf_to_img, inputs=file_input, outputs=output_img_name)
43
  show_button.click(show_images, inputs=image_name, outputs=output_img)
 
44
  with gr.Row():
45
  with gr.Column(scale=0.5):
46
- img_input = gr.Text(label="Provide the Image names separated by a comma(,).")
47
  # api_input = gr.Textbox(label= "Enter Api-key")
48
  # upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
49
  # with gr.Column():
 
31
  with gr.Row():
32
  with gr.Row():
33
  with gr.Column():
34
+ file_input = gr.File(type="filepath", label="Upload .pdf file")
35
  upload_button = gr.Button(value="Show Image Names")
36
  output_img_name = gr.Textbox(label="All Image names")
37
  with gr.Row():
 
41
  output_img = gr.Image(type="filepath")
42
  upload_button.click(pdf_to_img, inputs=file_input, outputs=output_img_name)
43
  show_button.click(show_images, inputs=image_name, outputs=output_img)
44
+ gr.Markdown(f'---')
45
  with gr.Row():
46
  with gr.Column(scale=0.5):
47
+ img_input = gr.Text(label="Provide the Image names separated by a comma(,)")
48
  # api_input = gr.Textbox(label= "Enter Api-key")
49
  # upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
50
  # with gr.Column():