shujianong commited on
Commit
68111c8
1 Parent(s): aeba30d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -17,9 +17,11 @@ My objective here is to build my first image classifier using Keras. Rare Pokemo
17
  User should upload a landscape image with the Pokemon card image positioned upright in the centre of the photo
18
  """
19
  import os
 
 
 
 
20
 
21
- RUN apt-get update && apt-get install -y python3-opencv
22
- RUN pip install opencv-python
23
  import cv2
24
  from PIL import Image
25
  import tensorflow as tf
@@ -59,11 +61,7 @@ def pkm_predict(image):
59
  else:
60
  return "This card is likely counterfeit."
61
 
62
- """# Install Gradio #"""
63
-
64
- os.system('pip install gradio==2.8.0b22')
65
-
66
- import gradio as gr
67
 
68
  image = gr.inputs.Image()
69
 
 
17
  User should upload a landscape image with the Pokemon card image positioned upright in the centre of the photo
18
  """
19
  import os
20
+ os.system('pip install gradio==2.8.0b22')
21
+ import gradio as gr
22
+ os.system('apt-get update && apt-get install -y python3-opencv')
23
+ os.system('pip install opencv-python')
24
 
 
 
25
  import cv2
26
  from PIL import Image
27
  import tensorflow as tf
 
61
  else:
62
  return "This card is likely counterfeit."
63
 
64
+ """# Gradio #"""
 
 
 
 
65
 
66
  image = gr.inputs.Image()
67