PabloG commited on
Commit
91f260f
1 Parent(s): c7d7333

Updated requirements

Browse files
Files changed (2) hide show
  1. app.py +11 -1
  2. requierements.txt +1 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
 
3
 
4
  learn = load_learner('export.pkl')
@@ -17,5 +18,14 @@ examples = ['examples/bird.jpg', 'examples/tree.jpg', 'examples/rainforest.jpg']
17
  interpretation='default'
18
  enable_queue=True
19
 
20
- gr.Interface(fn=predict,inputs=gr.Image(),outputs=gr.Label(num_top_classes=2),title=title,description=description,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
 
 
 
 
 
 
 
 
 
21
  iface.launch()
 
1
  import gradio as gr
2
+ from fastai.vision.all import *
3
 
4
 
5
  learn = load_learner('export.pkl')
 
18
  interpretation='default'
19
  enable_queue=True
20
 
21
+ gr.Interface(
22
+ fn=predict,
23
+ inputs=gr.Image(),
24
+ outputs=gr.Label(num_top_classes=2),
25
+ title=title,
26
+ description=description,
27
+ examples=examples,
28
+ interpretation=interpretation,
29
+ enable_queue=enable_queue,
30
+ ).launch()
31
  iface.launch()
requierements.txt CHANGED
@@ -0,0 +1 @@
 
 
1
+ fastai~=2.7.13