Equityone commited on
Commit
f03e082
·
verified ·
1 Parent(s): 6ae236a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -144,7 +144,8 @@ class ImageGenerator:
144
  logger.error(f"Erreur: {str(e)}")
145
  return None, f"Erreur: {str(e)}"
146
  finally:
147
- gc.collect()def create_interface():
 
148
  generator = ImageGenerator()
149
 
150
  with gr.Blocks() as demo:
 
144
  logger.error(f"Erreur: {str(e)}")
145
  return None, f"Erreur: {str(e)}"
146
  finally:
147
+ gc.collect()
148
+ def create_interface():
149
  generator = ImageGenerator()
150
 
151
  with gr.Blocks() as demo: