Moibe commited on
Commit
75c3f85
·
1 Parent(s): d224063

Return as Dataframe

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -117,20 +117,6 @@ def inference(img, lang):
117
 
118
  return result
119
 
120
-
121
- # title = 'PaddleOCR'
122
- # description = '''
123
- # - Gradio demo for PaddleOCR. PaddleOCR demo supports Chinese, English, French, German, Korean and Japanese.
124
- # - To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.
125
- # - [Docs](https://paddlepaddle.github.io/PaddleOCR/), [Github Repository](https://github.com/PaddlePaddle/PaddleOCR).
126
- # '''
127
-
128
- # examples = [
129
- # ['en_example.jpg','en'],
130
- # ['cn_example.jpg','ch'],
131
- # ['jp_example.jpg','japan'],
132
- # ]
133
-
134
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
135
  gr.Interface(
136
  inference,
@@ -139,7 +125,7 @@ gr.Interface(
139
  gr.Dropdown(choices=list(LANG_CONFIG.keys()), value='en', label='language')
140
  ],
141
  #gr.Image(type='pil', label='Output'), #Resultado en imagen
142
- gr.Text(),
143
  #title=title,
144
  #description=description,
145
  #examples=examples,
 
117
 
118
  return result
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
121
  gr.Interface(
122
  inference,
 
125
  gr.Dropdown(choices=list(LANG_CONFIG.keys()), value='en', label='language')
126
  ],
127
  #gr.Image(type='pil', label='Output'), #Resultado en imagen
128
+ gr.DataFrame(),
129
  #title=title,
130
  #description=description,
131
  #examples=examples,