JiantaoLin commited on
Commit
32921ee
Β·
1 Parent(s): 71c8391
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -284,7 +284,7 @@ def image_to_base64(image_path):
284
  """Converts an image file to a base64-encoded string."""
285
  with open(image_path, "rb") as img_file:
286
  return base64.b64encode(img_file.read()).decode('utf-8')
287
- subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)
288
  def main():
289
 
290
  torch.set_grad_enabled(False)
@@ -482,6 +482,7 @@ def main():
482
 
483
  # demo.queue(default_concurrency_limit=1)
484
  # demo.launch(server_name="0.0.0.0", server_port=9239)
 
485
  demo.launch()
486
 
487
 
 
284
  """Converts an image file to a base64-encoded string."""
285
  with open(image_path, "rb") as img_file:
286
  return base64.b64encode(img_file.read()).decode('utf-8')
287
+
288
  def main():
289
 
290
  torch.set_grad_enabled(False)
 
482
 
483
  # demo.queue(default_concurrency_limit=1)
484
  # demo.launch(server_name="0.0.0.0", server_port=9239)
485
+ subprocess.run("rm -rf /data-nvme/zerogpu-offload/*", env={}, shell=True)
486
  demo.launch()
487
 
488