sabarinathan commited on
Commit
a2855b2
·
1 Parent(s): 064b943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -106,13 +106,13 @@ path = [['image_0.jpg'], ['image_1.jpg']]
106
  inputs_image = [
107
  gr.components.Image(type="filepath", label="Input Image"),
108
  ]
109
- outputs_image = [
110
- gr.components.Image(type="json", label="Output Json"),
111
  ]
112
  interface_image = gr.Interface(
113
  fn=getOCRResults,
114
  inputs=inputs_image,
115
- outputs=outputs_image,
116
  title="Hiragana Character Recognition",
117
  examples=path,
118
  cache_examples=False,
 
106
  inputs_image = [
107
  gr.components.Image(type="filepath", label="Input Image"),
108
  ]
109
+ outputs = [
110
+ gr.components.JSON(label="Output Json"),
111
  ]
112
  interface_image = gr.Interface(
113
  fn=getOCRResults,
114
  inputs=inputs_image,
115
+ outputs=outputs,
116
  title="Hiragana Character Recognition",
117
  examples=path,
118
  cache_examples=False,