ImgTest / app.py
CognitiveScience's picture
Create app.py
807a5e1 verified
raw
history blame
270 Bytes
import gradio as gr
def image_mod(image):
print(image)
return f"<img src='file={image}'>"
with gr.Blocks() as demo:
img = gr.Image(type='filepath')
with gr.Row():
htm1 = gr.HTML()
gr.Button().click(image_mod,img, [htm1])
demo.launch()