amjadfqs commited on
Commit
3edf187
·
verified ·
1 Parent(s): 4291738

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,3 +1,9 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/amjadfqs/finalProject").launch()
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ def predict(image):
4
+ # Load your Hugging Face model here and make a prediction
5
+ model = gr.load("models/amjadfqs/finalProject")
6
+ return model(image)
7
+
8
+ interface = gr.Interface(fn=predict, inputs=gr.inputs.Image(), outputs="text")
9
+ interface.launch()