Spaces:
Running
Running
revert
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ from controlnet_aux import CannyDetector
|
|
11 |
|
12 |
# login hf token
|
13 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
14 |
-
from huggingface_hub import login
|
15 |
-
|
16 |
-
login()
|
17 |
|
18 |
dtype = torch.bfloat16
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -58,7 +58,7 @@ def inpaint(
|
|
58 |
|
59 |
|
60 |
with gr.Blocks() as demo:
|
61 |
-
gr.LoginButton()
|
62 |
gr.Interface(
|
63 |
fn=inpaint,
|
64 |
inputs=[
|
|
|
11 |
|
12 |
# login hf token
|
13 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
14 |
+
# from huggingface_hub import login
|
15 |
+
#
|
16 |
+
# login()
|
17 |
|
18 |
dtype = torch.bfloat16
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
58 |
|
59 |
|
60 |
with gr.Blocks() as demo:
|
61 |
+
# gr.LoginButton()
|
62 |
gr.Interface(
|
63 |
fn=inpaint,
|
64 |
inputs=[
|