Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
| 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)
|