TangJicheng123 commited on
Commit
08a757c
1 Parent(s): 76342a1

add json parse

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ def get_png_meta_info(image):
5
 
6
  # 创建Gradio界面
7
  input_image = gr.inputs.Image(type='pil')
8
- output_text = gr.outputs.Textbox()
9
  interface = gr.Interface(fn=get_png_meta_info, inputs=input_image, outputs=output_text)
10
 
11
  # 运行Gradio界面
 
5
 
6
  # 创建Gradio界面
7
  input_image = gr.inputs.Image(type='pil')
8
+ output_text = gr.Json()
9
  interface = gr.Interface(fn=get_png_meta_info, inputs=input_image, outputs=output_text)
10
 
11
  # 运行Gradio界面