Vihang28 commited on
Commit
ceeef9a
·
verified ·
1 Parent(s): 7ca319d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -33,15 +33,21 @@ with block:
33
  with gr.Column():
34
  file_input = gr.File(type="filepath")
35
  upload_button = gr.Button(value="Show Image Names")
36
- # with gr.Column():
37
  output_img_name = gr.Textbox(label="All Image names")
38
- upload_button.click(pdf_to_img, inputs=file_input, outputs=output_img_name)
39
-
40
  with gr.Row():
41
  with gr.Column():
42
  image_name = gr.Textbox(label="Mention Image to Show")
43
  show_button = gr.Button(value="Show Images")
44
- # with gr.Column():
45
  output_img = gr.Image(type="filepath")
 
46
  show_button.click(show_images, inputs=image_name, outputs=output_img)
 
 
 
 
 
 
 
 
 
47
  block.launch()
 
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():
38
  with gr.Column():
39
  image_name = gr.Textbox(label="Mention Image to Show")
40
  show_button = gr.Button(value="Show Images")
 
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():
50
+ # chatbot = gr.Chatbot(label="Chat with Image")
51
+ # message = gr.Textbox(label="User", placeholder=prompt)
52
+ # state = gr.State()
53
  block.launch()