Nischay103 commited on
Commit
6c8ffbc
1 Parent(s): 2cb045a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -25,8 +25,7 @@ transform = get_transform()
25
  image = gr.Image(type="pil", label="captcha image")
26
  text = gr.Textbox(label="recognized character sequence")
27
 
28
- def recognize_captcha(image_path):
29
- input = Image.open(image_path)
30
  input = transform(input.convert('RGB')).unsqueeze(0)
31
  model = torch.jit.load(model_path)
32
  with torch.no_grad():
 
25
  image = gr.Image(type="pil", label="captcha image")
26
  text = gr.Textbox(label="recognized character sequence")
27
 
28
+ def recognize_captcha(input):
 
29
  input = transform(input.convert('RGB')).unsqueeze(0)
30
  model = torch.jit.load(model_path)
31
  with torch.no_grad():