Spaces:
Runtime error
Runtime error
import gradio as gr | |
from predict import predict_one_image | |
input_image = [ | |
gr.components.Image(type='filepath',label='Input Image') | |
] | |
label = gr.outputs.Label() | |
examples = ['10061.jpg','10013.jpg'] | |
gr.Interface( | |
fn=predict_one_image, | |
inputs=input_image, | |
outputs=label, | |
title="Ai Image Generated Detector app", | |
examples=examples, | |
cache_examples=False, | |
).launch(share=True) |