TalhaUsuf commited on
Commit
5115ee1
1 Parent(s): d8b4e17

fixed issues

Browse files
Files changed (2) hide show
  1. README.md +5 -5
  2. app.py +6 -7
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
  title: Screen Image Demoireing
3
- emoji:
4
- colorFrom: purple
5
- colorTo: purple
6
  sdk: gradio
7
- sdk_version: 3.1.1
 
 
8
  app_file: app.py
9
  pinned: false
10
- duplicated_from: ECCV2022/Screen_Image_Demoireing
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Screen Image Demoireing
3
+ emoji: 🔥
 
 
4
  sdk: gradio
5
+ sdk_version: 3.10.1
6
+ colorFrom: blue
7
+ colorFrom: green
8
  app_file: app.py
9
  pinned: false
10
+
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -76,12 +76,11 @@ def img_pad(x, w_pad, h_pad, w_odd_pad, h_odd_pad):
76
 
77
 
78
  title = "image restore"
79
- description = " The model was trained to remove the moire patterns from your captured screen images! Specially, this model is capable of tackling \
80
- images up to 4K resolution, which adapts to most of the modern mobile phones. \
81
  <br /> \
82
  It takes time to perform inference \
83
- <br /> \
84
- ",
85
 
86
  article = "Reference:\n Towards Efficient and Scale-Robust Ultra-High-Definition Image Demoiréing. CVMI Lab, Nov. 21, 2022. Accessed: Nov. 21, 2022. [Online]. Available: https://github.com/CVMI-Lab/UHDM"
87
 
@@ -678,11 +677,11 @@ files = [os.path.join("n000129", k) for k in files]
678
  Console().print(Columns ([Panel.fit(f"{k}", style="red on black") for k in files]))
679
 
680
  iface1 = gr.Interface(fn=predict1,
681
- inputs=gr.inputs.Image(type="pil"),
682
- outputs=gr.inputs.Image(type="pil"),
683
  examples=files,
684
  title = title,
685
- description = description,
686
  article = article
687
  )
688
 
 
76
 
77
 
78
  title = "image restore"
79
+ description = " The model was trained to remove the moire patterns from images! Max input image resolution is \
80
+ up to 4K resolution\
81
  <br /> \
82
  It takes time to perform inference \
83
+ <br />"
 
84
 
85
  article = "Reference:\n Towards Efficient and Scale-Robust Ultra-High-Definition Image Demoiréing. CVMI Lab, Nov. 21, 2022. Accessed: Nov. 21, 2022. [Online]. Available: https://github.com/CVMI-Lab/UHDM"
86
 
 
677
  Console().print(Columns ([Panel.fit(f"{k}", style="red on black") for k in files]))
678
 
679
  iface1 = gr.Interface(fn=predict1,
680
+ inputs=gr.Image(type="pil"),
681
+ outputs=gr.Image(type="pil"),
682
  examples=files,
683
  title = title,
684
+ # description = description,
685
  article = article
686
  )
687