Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -248,10 +248,14 @@ def image_processing(image, filter_type):
|
|
248 |
|
249 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
250 |
|
|
|
|
|
|
|
|
|
|
|
251 |
css = """
|
252 |
-
.gradio-container {
|
253 |
-
|
254 |
-
visibility: hidden;
|
255 |
}
|
256 |
"""
|
257 |
|
@@ -367,4 +371,3 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
367 |
iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
|
368 |
|
369 |
app.launch(share=True)
|
370 |
-
|
|
|
248 |
|
249 |
return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
|
250 |
|
251 |
+
# Get absolute path of image file
|
252 |
+
image_path = 'https://huggingface.co/spaces/DigiP-AI/Image_Studio/blob/main/abstract.jpg' # Replace with your image file path
|
253 |
+
|
254 |
+
absolute_path = os.path.abspath(image_path)
|
255 |
+
|
256 |
css = """
|
257 |
+
.gradio-container {
|
258 |
+
background: url(https://huggingface.co/spaces/DigiP-AI/Image_Studio/blob/main/abstract.jpg)
|
|
|
259 |
}
|
260 |
"""
|
261 |
|
|
|
371 |
iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
|
372 |
|
373 |
app.launch(share=True)
|
|