PranomVignesh commited on
Commit
fb78c6b
·
1 Parent(s): 48b3f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,7 @@ imageClassifier = pipeline(task="image-classification",
7
  model="PranomVignesh/Handwritten-Characters")
8
 
9
  def predict(image):
10
- input = Image.fromarray(input)
11
  predictions = imageClassifier(image)
12
  output = {}
13
  for item in predictions:
@@ -17,6 +17,7 @@ def predict(image):
17
 
18
 
19
  inputs = gr.Sketchpad(shape=(224, 224),
 
20
  label="Draw your characters to detect")
21
 
22
  outputs = gr.Label(label="Predicted Character")
 
7
  model="PranomVignesh/Handwritten-Characters")
8
 
9
  def predict(image):
10
+ image = Image.fromarray(image)
11
  predictions = imageClassifier(image)
12
  output = {}
13
  for item in predictions:
 
17
 
18
 
19
  inputs = gr.Sketchpad(shape=(224, 224),
20
+ live=True,
21
  label="Draw your characters to detect")
22
 
23
  outputs = gr.Label(label="Predicted Character")