DigiP-AI commited on
Commit
c724114
·
verified ·
1 Parent(s): db8f885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -280,6 +280,11 @@ def image_processing(image, filter_type):
280
  output = image
281
 
282
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
 
 
 
 
 
283
 
284
  css = """
285
  .gradio-container {
 
280
  output = image
281
 
282
  return cv2.cvtColor(output, cv2.COLOR_BGR2RGB) if len(output.shape) == 3 else output
283
+
284
+ # Get absolute path of image file
285
+ image_path = 'https://huggingface.co/spaces/DigiP-AI/Image_Studio/blob/main/abstract.jpg' # Replace with your image file path
286
+
287
+ absolute_path = os.path.abspath(image_path)
288
 
289
  css = """
290
  .gradio-container {