Schmucas commited on
Commit
37c02c5
·
verified ·
1 Parent(s): e72527a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
 
3
- model = gr.load("models/Schmucas/horse_jump_model")
4
 
5
- iface = gr.Interface.from_model(model)
6
 
7
- iface.launch(
8
- examples=examples
9
- )
 
1
  import gradio as gr
2
 
3
+ horse_jump_model = gr.load("models/Schmucas/horse_jump_model")
4
 
5
+ examples = ['horse_jumping.jpg', 'horse_waling.jpg', 'dog.jpg']
6
 
7
+ interface = gr.Interface(fn=horse_jump_model, inputs="text", outputs="text", examples=examples)
8
+
9
+ interface.launch()