[x] I have searched to see if a similar issue already exists.
Is your feature request related to a problem? Please describe.
When using the Examples component with an image file, it can preview a thumbnail of the image in the app. Similarly, I'd like to add the ability to show a thumbnail of the first page of a PDF. However, the current Gradio Examples feature doesn't seem to be able to do it.
Describe the solution you'd like
I think it would be nice to allow the user to put in a custom preprocessing function before the values in examples are put into inputs.
If there is such a feature, I think we could solve this problem by taking the path to the PDF file, changing the first page of the PDF to image and putting it into a gradio Image component.
Additional context
(3rd image is PDF file. I want to show the thumbnail as first page of pdf file)
Is your feature request related to a problem? Please describe.
When using the
Examples
component with an image file, it can preview a thumbnail of the image in the app. Similarly, I'd like to add the ability to show a thumbnail of the first page of a PDF. However, the current Gradio Examples feature doesn't seem to be able to do it.Describe the solution you'd like
I think it would be nice to allow the user to put in a custom preprocessing function before the values in
examples
are put intoinputs
. If there is such a feature, I think we could solve this problem by taking the path to the PDF file, changing the first page of the PDF to image and putting it into a gradioImage
component.Additional context
(3rd image is PDF file. I want to show the thumbnail as first page of pdf file)