Spaces:
Runtime error
Runtime error
update code
Browse files
app.py
CHANGED
|
@@ -203,7 +203,6 @@ def generate(state, imagebox, textbox, image_process_mode, gen_image, temperatur
|
|
| 203 |
torch.cuda.empty_cache()
|
| 204 |
|
| 205 |
|
| 206 |
-
@spaces.GPU
|
| 207 |
def add_text(state, imagebox, textbox, image_process_mode, gen_image):
|
| 208 |
if state is None:
|
| 209 |
state = conv_templates[conv_mode].copy()
|
|
|
|
| 203 |
torch.cuda.empty_cache()
|
| 204 |
|
| 205 |
|
|
|
|
| 206 |
def add_text(state, imagebox, textbox, image_process_mode, gen_image):
|
| 207 |
if state is None:
|
| 208 |
state = conv_templates[conv_mode].copy()
|