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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -22,6 +22,10 @@ def pdf_to_img(pdf_path):
22
 
23
  def show_images(image_name):
24
  return image_name
 
 
 
 
25
 
26
  title = "Compare the Graphs"
27
 
@@ -45,6 +49,10 @@ with block:
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():
 
22
 
23
  def show_images(image_name):
24
  return image_name
25
+
26
+ def concate_image(img_input):
27
+ return(type(img_input))
28
+
29
 
30
  title = "Compare the Graphs"
31
 
 
49
  with gr.Row():
50
  with gr.Column(scale=0.5):
51
  img_input = gr.Text(label="Provide the Image names separated by a comma(,)")
52
+ show_concat = gr.Button(value="Show Images")
53
+ img_concat = gr.Text(label="")
54
+ show_concat.click(concate_image, inputs=img_input, outputs=img_concat)
55
+
56
  # api_input = gr.Textbox(label= "Enter Api-key")
57
  # upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
58
  # with gr.Column():