Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,9 @@ def generate(prompt, negative_prompt, width=1024, height=1024, steps=4, seed=-1,
|
|
| 53 |
torch.cuda.empty_cache()
|
| 54 |
return image
|
| 55 |
except Exception as e:
|
|
|
|
|
|
|
|
|
|
| 56 |
return None
|
| 57 |
|
| 58 |
# Interface Gradio
|
|
|
|
| 53 |
torch.cuda.empty_cache()
|
| 54 |
return image
|
| 55 |
except Exception as e:
|
| 56 |
+
print(f"Erreur génération: {e}") # Debug dans les logs
|
| 57 |
+
import traceback
|
| 58 |
+
traceback.print_exc()
|
| 59 |
return None
|
| 60 |
|
| 61 |
# Interface Gradio
|