Update app.py
Browse files
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()
|
|
|
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:
|