import gradio as gr def scrape(instring): html_src=(f'''

Pdf viewer testing

''') return gr.HTML.update(f'''{html_src}''') with gr.Blocks() as app: inp=gr.Textbox() go_btn = gr.Button() outp = gr.HTML() go_btn.click(scrape,inp,outp) app.queue(concurrency_count=10).launch()