LiveEvil commited on
Commit
9d7e561
·
1 Parent(s): d90476f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
2
 
3
  def image_classifier(input):
4
  return {'normal': 0.3, 'bullying': 0.7}
 
 
 
 
 
 
 
 
5
 
6
- demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
7
- demo.launch()
 
2
 
3
  def image_classifier(input):
4
  return {'normal': 0.3, 'bullying': 0.7}
5
+
6
+ ).launch(enable_queue=True)
7
+ demo = gr.Interface.load(
8
+ "models/datasciencemmw/pickonai-best",
9
+ inputs="image",
10
+ output="label",
11
+ title="PickOnAI Demo")
12
+ demo.launch()
13