Thibaud Cheruy commited on
Commit
5be1082
·
1 Parent(s): 1654030

Fix: Clean project

Browse files
Files changed (3) hide show
  1. .gitignore +2 -1
  2. README.md +3 -5
  3. app.py +2 -2
.gitignore CHANGED
@@ -1,2 +1,3 @@
1
  venv/
2
- .idea/
 
 
1
  venv/
2
+ .idea/
3
+ __pycache__/
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: SRGAN
3
- emoji: 📚
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: gradio
7
  sdk_version: 3.16.1
8
  app_file: app.py
@@ -10,5 +10,3 @@ pinned: false
10
  license: apache-2.0
11
  python_version: 3.10.3
12
  ---
13
-
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: SRGAN
3
+ emoji: 🏞
4
+ colorFrom: blue
5
+ colorTo: orange
6
  sdk: gradio
7
  sdk_version: 3.16.1
8
  app_file: app.py
 
10
  license: apache-2.0
11
  python_version: 3.10.3
12
  ---
 
 
app.py CHANGED
@@ -77,6 +77,7 @@ def processLowRes(image):
77
  return [sr_image]
78
 
79
  description = """<p style='text-align: center'> <a href='https://arxiv.org/abs/1609.04802' target='_blank'>Paper</a> | <a href=https://github.com/Lornatang/SRGAN-PyTorch target='_blank'>GitHub</a></p>"""
 
80
 
81
  with gr.Blocks() as demo:
82
  gr.Markdown("# **<p align='center'>SRGAN: Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network</p>**")
@@ -105,7 +106,6 @@ with gr.Blocks() as demo:
105
  high_res_button.click(processHighRes, inputs=[high_res_input], outputs=[low_res_output, srgan_output])
106
  low_res_button.click(processLowRes, inputs=[low_res_input], outputs=[srgan_upscale])
107
 
108
- gr.Markdown("<p style='text-align: center'>Made for the 2022-2023 Grenoble-INP Phelma Image analysis course, by Thibaud CHERUY, Clément DEBUY & Yassine El Khanoussi.</p>")
109
-
110
 
111
  demo.launch()
 
77
  return [sr_image]
78
 
79
  description = """<p style='text-align: center'> <a href='https://arxiv.org/abs/1609.04802' target='_blank'>Paper</a> | <a href=https://github.com/Lornatang/SRGAN-PyTorch target='_blank'>GitHub</a></p>"""
80
+ about = "<p style='text-align: center'>Made for the 2022-2023 Grenoble-INP Phelma Image analysis course by Thibaud CHERUY, Clément DEBUY & Yassine EL KHANOUSSI.</p>"
81
 
82
  with gr.Blocks() as demo:
83
  gr.Markdown("# **<p align='center'>SRGAN: Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network</p>**")
 
106
  high_res_button.click(processHighRes, inputs=[high_res_input], outputs=[low_res_output, srgan_output])
107
  low_res_button.click(processLowRes, inputs=[low_res_input], outputs=[srgan_upscale])
108
 
109
+ gr.Markdown(about)
 
110
 
111
  demo.launch()