pratyyush commited on
Commit
68811da
·
verified ·
1 Parent(s): 7c28cde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -111,31 +111,31 @@ def deblur_image(filepath):
111
  print(f"Error processing image: {e}")
112
  return None
113
 
114
- # ✅ Custom CSS for styling and hiding share button
115
  custom_css = """
116
  /* Hide Gradio's footer and header */
117
  footer, header, .gradio-footer, .gradio-header {
118
  display: none !important;
119
  }
120
-
121
  /* Hide share button */
122
- .share-wrap {
 
 
 
 
123
  display: none !important;
124
  }
125
-
126
  /* Non-draggable images */
127
  img {
128
  pointer-events: none !important;
129
  -webkit-user-drag: none !important;
130
  user-select: none !important;
131
  }
132
-
133
  /* Styling adjustments */
134
  body, .gradio-container {
135
  background-color: #000000 !important;
136
  color: white !important;
137
  }
138
-
139
  .gr-button {
140
  background: #1e90ff !important;
141
  color: white !important;
@@ -144,11 +144,9 @@ body, .gradio-container {
144
  font-size: 14px !important;
145
  cursor: pointer;
146
  }
147
-
148
  .gr-button:hover {
149
  background: #0056b3 !important;
150
  }
151
-
152
  .gr-box, .gr-input, .gr-output {
153
  background-color: #1c1c1c !important;
154
  color: white !important;
@@ -159,7 +157,7 @@ body, .gradio-container {
159
  # ✅ Gradio interface
160
  demo = gr.Interface(
161
  fn=deblur_image,
162
- inputs=gr.File(label="Imput", type="filepath"),
163
  outputs=gr.Image(type="numpy", label="Deblurred Result"),
164
  title="Image Deblurring",
165
  description="Upload a blurry image.",
 
111
  print(f"Error processing image: {e}")
112
  return None
113
 
114
+ # ✅ Custom CSS for styling, hiding share & fullscreen icons
115
  custom_css = """
116
  /* Hide Gradio's footer and header */
117
  footer, header, .gradio-footer, .gradio-header {
118
  display: none !important;
119
  }
 
120
  /* Hide share button */
121
+ .share-wrap, .gr-share-btn {
122
+ display: none !important;
123
+ }
124
+ /* Hide fullscreen icon */
125
+ .gr-button[title="Fullscreen"] {
126
  display: none !important;
127
  }
 
128
  /* Non-draggable images */
129
  img {
130
  pointer-events: none !important;
131
  -webkit-user-drag: none !important;
132
  user-select: none !important;
133
  }
 
134
  /* Styling adjustments */
135
  body, .gradio-container {
136
  background-color: #000000 !important;
137
  color: white !important;
138
  }
 
139
  .gr-button {
140
  background: #1e90ff !important;
141
  color: white !important;
 
144
  font-size: 14px !important;
145
  cursor: pointer;
146
  }
 
147
  .gr-button:hover {
148
  background: #0056b3 !important;
149
  }
 
150
  .gr-box, .gr-input, .gr-output {
151
  background-color: #1c1c1c !important;
152
  color: white !important;
 
157
  # ✅ Gradio interface
158
  demo = gr.Interface(
159
  fn=deblur_image,
160
+ inputs=gr.File(label="Input", type="filepath"),
161
  outputs=gr.Image(type="numpy", label="Deblurred Result"),
162
  title="Image Deblurring",
163
  description="Upload a blurry image.",