JaMe76 commited on
Commit
64811e2
·
1 Parent(s): db209d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -207,13 +207,15 @@ with demo:
207
  with gr.Tab("Image upload"):
208
  with gr.Column():
209
  inputs = gr.Image(type='numpy', label="Original Image")
210
- with gr.Tab("PDF upload (only first image will be processed)"):
211
  with gr.Column():
212
  inputs_pdf = gr.File(label="PDF")
 
213
  with gr.Column():
214
  gr.Examples(
215
  examples=[path.join(getcwd(), "sample_1.jpg"), path.join(getcwd(), "sample_2.png")],
216
  inputs = inputs)
 
217
 
218
  with gr.Row():
219
  tok_input = gr.CheckboxGroup(
 
207
  with gr.Tab("Image upload"):
208
  with gr.Column():
209
  inputs = gr.Image(type='numpy', label="Original Image")
210
+ with gr.Tab("PDF upload (only first image will be processed) *"):
211
  with gr.Column():
212
  inputs_pdf = gr.File(label="PDF")
213
+ gr.Markdown("<sup>* If an image is cached in tab, remove it first</sup>")
214
  with gr.Column():
215
  gr.Examples(
216
  examples=[path.join(getcwd(), "sample_1.jpg"), path.join(getcwd(), "sample_2.png")],
217
  inputs = inputs)
218
+ gr.Examples(examples=[path.join(getcwd(), "sample_3.pdf")], inputs = inputs_pdf)
219
 
220
  with gr.Row():
221
  tok_input = gr.CheckboxGroup(