XiangpengYang commited on
Commit
d7d8851
·
1 Parent(s): 46d5cc0
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -272,6 +272,5 @@ with gr.Blocks(css='style.css') as demo:
272
  ]
273
  prompt.submit(fn=pipe.run, inputs=inputs, outputs=result)
274
  run_button.click(fn=pipe.run, inputs=inputs, outputs=result)
275
- if device == 'cuda':
276
- torch.cuda.empty_cache()
277
  demo.queue().launch()
 
272
  ]
273
  prompt.submit(fn=pipe.run, inputs=inputs, outputs=result)
274
  run_button.click(fn=pipe.run, inputs=inputs, outputs=result)
275
+
 
276
  demo.queue().launch()