finalProject2 / app.py
amjadfqs's picture
Update app.py
60c94e7 verified
raw
history blame
316 Bytes
import gradio as gr
def predict(image):
# Load your Hugging Face model here and make a prediction
model = gr.load("models/amjadfqs/finalProject")
return model(image)
image_cp = gr.image(type="pil", label="Brain")
interface = gr.Interface(fn=predict, inputs=image_cp, outputs="text")
interface.launch()