prithivMLmods commited on
Commit
040a8bb
·
verified ·
1 Parent(s): 389deaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -6,6 +6,7 @@ import requests
6
  import random
7
  import logging
8
  import numpy as np
 
9
  from typing import Any, Dict, List, Optional, Union
10
 
11
  import torch
@@ -28,16 +29,6 @@ from huggingface_hub import (
28
 
29
  from diffusers.utils import load_image
30
 
31
- import spaces
32
-
33
- #---if workspace = local or colab---
34
-
35
- # Authenticate with Hugging Face
36
- # from huggingface_hub import login
37
-
38
- # Log in to Hugging Face using the provided token
39
- # hf_token = 'hf-token-authentication'
40
- # login(hf_token)
41
 
42
  def calculate_shift(
43
  image_seq_len,
@@ -1286,7 +1277,7 @@ css = '''
1286
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
1287
  '''
1288
 
1289
- with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 60)) as app:
1290
  title = gr.HTML(
1291
  """<h1>FLUX LoRA DLC2🔥</h1>""",
1292
  elem_id="title",
 
6
  import random
7
  import logging
8
  import numpy as np
9
+ import spaces
10
  from typing import Any, Dict, List, Optional, Union
11
 
12
  import torch
 
29
 
30
  from diffusers.utils import load_image
31
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  def calculate_shift(
34
  image_seq_len,
 
1277
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
1278
  '''
1279
 
1280
+ with gr.Blocks(theme="bethecloud/storj_theme", css=css, delete_cache=(60, 60)) as app:
1281
  title = gr.HTML(
1282
  """<h1>FLUX LoRA DLC2🔥</h1>""",
1283
  elem_id="title",