MeghanaM4 commited on
Commit
34c94d2
1 Parent(s): 62ec921

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -9,8 +9,12 @@ for dirname, _, filenames in os.walk('/kaggle/input'):
9
 
10
  from fastai.vision.all import *
11
  import gradio as gr
12
- learn = load_learner('model.pkl')
 
13
  def is_cat(x): return x[0].isupper()
 
 
 
14
  categories = ('Dog', 'Cat')
15
 
16
  def classify_image(img):
@@ -21,4 +25,4 @@ image = "image"
21
  label = "label"
22
 
23
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
24
- intf.launch(inline=False)
 
9
 
10
  from fastai.vision.all import *
11
  import gradio as gr
12
+
13
+ share = True
14
  def is_cat(x): return x[0].isupper()
15
+
16
+ learn = load_learner('model.pkl')
17
+
18
  categories = ('Dog', 'Cat')
19
 
20
  def classify_image(img):
 
25
  label = "label"
26
 
27
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
28
+ intf.launch(inline=False, share = True)