TangJicheng123 commited on
Commit
76342a1
1 Parent(s): 32b1a9d

new file: app.py

Browse files

new file: requirements.txt

Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def get_png_meta_info(image):
4
+ return image.info
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界面
12
+ interface.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Pillow