tomofi commited on
Commit
0d6a678
·
1 Parent(s): e6b9836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import gradio as gr
3
 
4
  def inference(filepath):
5
- return os.popen(f'ssocr -D-1 -t 70 {filepath}').read()
6
 
7
  title = "Seven Segment Optical Character Recognition"
8
  description = "Gradio demo for SSOCR.Seven Segment Optical Character Recognition or ssocr for short is a program to recognize digits of a seven segment display. An image of one row of digits is used for input and the recognized number is written to the standard output."
 
2
  import gradio as gr
3
 
4
  def inference(filepath):
5
+ return os.popen(f'ssocr -D-1 -t 70 {filepath}').read().strip()
6
 
7
  title = "Seven Segment Optical Character Recognition"
8
  description = "Gradio demo for SSOCR.Seven Segment Optical Character Recognition or ssocr for short is a program to recognize digits of a seven segment display. An image of one row of digits is used for input and the recognized number is written to the standard output."