ihabooe commited on
Commit
270ef81
·
verified ·
1 Parent(s): 02c83f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -39,6 +39,8 @@ def resize_image(image, max_size=1024):
39
 
40
  return image
41
 
 
 
42
  def process(image, progress=gr.Progress()):
43
  if image is None:
44
  return None, None
@@ -97,6 +99,8 @@ def process(image, progress=gr.Progress()):
97
  print(f"Error processing image: {str(e)}")
98
  return None, None
99
 
 
 
100
  # Gradio interface
101
  with gr.Blocks(css="""
102
  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');
 
39
 
40
  return image
41
 
42
+ # ... existing imports and model loading code ...
43
+
44
  def process(image, progress=gr.Progress()):
45
  if image is None:
46
  return None, None
 
99
  print(f"Error processing image: {str(e)}")
100
  return None, None
101
 
102
+ # ... rest of the code remains the same ...
103
+
104
  # Gradio interface
105
  with gr.Blocks(css="""
106
  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');