File size: 268 Bytes
c46c672
 
3edf187
 
 
 
 
f907852
3edf187
1
2
3
4
5
6
7
8
9
10
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)

interface = gr.Interface(fn=predict, inputs="image", outputs="text")
interface.launch()