gryan-galario commited on
Commit
b7694dc
1 Parent(s): c20ac67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -19,7 +19,6 @@ def post_process(text):
19
  return text
20
 
21
  def manga_ocr(img):
22
- img = Image.open(img)
23
  img = img.convert('L').convert('RGB')
24
  pixel_values = self.feature_extractor(img, return_tensors="pt").pixel_values
25
  output = model.generate(pixel_values)[0]
@@ -38,4 +37,4 @@ iface = gr.Interface(
38
  allow_flagging='never',
39
  )
40
 
41
- iface.launch(inbrowser=True)
 
19
  return text
20
 
21
  def manga_ocr(img):
 
22
  img = img.convert('L').convert('RGB')
23
  pixel_values = self.feature_extractor(img, return_tensors="pt").pixel_values
24
  output = model.generate(pixel_values)[0]
 
37
  allow_flagging='never',
38
  )
39
 
40
+ iface.launch()