Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def load_bnb_4bit_pipeline():
|
|
115 |
print(f"4-bit BNB pipeline: {e}")
|
116 |
raise
|
117 |
|
118 |
-
|
119 |
def generate_images(prompt, quantization_choice, progress=gr.Progress(track_tqdm=True)):
|
120 |
"""Loads original and selected quantized model, generates one image each, clears memory, shuffles results."""
|
121 |
if not prompt:
|
|
|
115 |
print(f"4-bit BNB pipeline: {e}")
|
116 |
raise
|
117 |
|
118 |
+
@spaces.GPU(duration=240)
|
119 |
def generate_images(prompt, quantization_choice, progress=gr.Progress(track_tqdm=True)):
|
120 |
"""Loads original and selected quantized model, generates one image each, clears memory, shuffles results."""
|
121 |
if not prompt:
|