kivilaid commited on
Commit
4147187
·
1 Parent(s): 3158622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -25,7 +25,7 @@ iface = gr.Interface(
25
  gr.File(label="Input JSON (File)", type="file")
26
  ],
27
  outputs=[
28
- gr.Textbox(label="Minified JSON (Text)", lines=10),
29
  gr.File(label="Minified JSON (Download)", type="json")
30
  ],
31
  title="JSON Minifier",
@@ -33,4 +33,5 @@ iface = gr.Interface(
33
  )
34
 
35
  # Launch the app
36
- iface.launch()
 
 
25
  gr.File(label="Input JSON (File)", type="file")
26
  ],
27
  outputs=[
28
+ gr.Textbox(label="Minified JSON (Text)", lines=10, type="str"),
29
  gr.File(label="Minified JSON (Download)", type="json")
30
  ],
31
  title="JSON Minifier",
 
33
  )
34
 
35
  # Launch the app
36
+ if __name__ == "__main__":
37
+ iface.launch()