File size: 278 Bytes
c46c672
 
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=gr.inputs.Image(), outputs="text")
interface.launch()