mrcuddle commited on
Commit
d7b4d7a
·
verified ·
1 Parent(s): f072366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  import time
4
  from os import path
5
  from safetensors.torch import load_file
6
- from huggingface_hub import hf_hub_download
7
  import spaces
8
 
9
  cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
@@ -16,8 +16,7 @@ import torch
16
  from diffusers import FluxPipeline
17
 
18
  torch.backends.cuda.matmul.allow_tf32 = True
19
- import huggingface_hub
20
- huggingface_hub.login(os.getenv('HF_TOKEN'))
21
  class timer:
22
  def __init__(self, method_name="timed process"):
23
  self.method = method_name
 
3
  import time
4
  from os import path
5
  from safetensors.torch import load_file
6
+ import huggingface_hub
7
  import spaces
8
 
9
  cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
 
16
  from diffusers import FluxPipeline
17
 
18
  torch.backends.cuda.matmul.allow_tf32 = True
19
+ huggingface_hub.login(os.getenv('HF_TOKEN'))
 
20
  class timer:
21
  def __init__(self, method_name="timed process"):
22
  self.method = method_name