Yunij commited on
Commit
e9ea2fa
·
1 Parent(s): 2c40cc9
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -26,22 +26,19 @@ def classify_athlete(img):
26
 
27
  classify_athlete("cr7.jpeg")
28
 
29
- # In[16]:
30
 
31
  image = gr.inputs.Image(shape=(192, 192))
32
  label = gr.outputs.Label()
33
  examples = ["cr7.jpeg", "messi.jpeg", "michael_jordan.jpeg"]
34
 
35
  intf = gr.Interface(fn=classify_athlete, inputs=image, outputs=label, examples=examples)
36
- intf.launch(inline=False)
37
 
38
  # # Making and exporting a python script
39
 
40
- # In[18]:
41
 
42
  # Export Notebook to python Script -- nbdev --
43
- from notebook2script import convert_notebook
44
-
45
- convert_notebook("app.ipynb", "app.py")
46
 
47
  # In[ ]:
 
26
 
27
  classify_athlete("cr7.jpeg")
28
 
29
+ # In[24]:
30
 
31
  image = gr.inputs.Image(shape=(192, 192))
32
  label = gr.outputs.Label()
33
  examples = ["cr7.jpeg", "messi.jpeg", "michael_jordan.jpeg"]
34
 
35
  intf = gr.Interface(fn=classify_athlete, inputs=image, outputs=label, examples=examples)
36
+ intf.launch(inline=False, share=True)
37
 
38
  # # Making and exporting a python script
39
 
40
+ # In[21]:
41
 
42
  # Export Notebook to python Script -- nbdev --
 
 
 
43
 
44
  # In[ ]: