DigiP-AI commited on
Commit
148cea1
·
verified ·
1 Parent(s): 9ab70d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -1
app.py CHANGED
@@ -8,6 +8,44 @@ from PIL import Image
8
  from deep_translator import GoogleTranslator
9
  import json
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  API_TOKEN = os.getenv("HF_READ_TOKEN")
13
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
@@ -94,7 +132,7 @@ css = """
94
  }
95
  """
96
 
97
- with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
98
  gr.HTML("<center><h1>FLUX.1-Dev with LoRA support</h1></center>")
99
  with gr.Column(elem_id="app-container"):
100
  with gr.Row():
 
8
  from deep_translator import GoogleTranslator
9
  import json
10
 
11
+ from fastapi import FastAPI
12
+
13
+ app = FastAPI()
14
+
15
+ #----------Start of theme----------
16
+ theme = gr.themes.Soft(
17
+ primary_hue="zinc",
18
+ secondary_hue="stone",
19
+ font=[gr.themes.GoogleFont('Kavivanar'), gr.themes.GoogleFont('Kavivanar'), 'system-ui', 'sans-serif'],
20
+ font_mono=[gr.themes.GoogleFont('Source Code Pro'), gr.themes.GoogleFont('Inconsolata'), gr.themes.GoogleFont('Inconsolata'), 'monospace'],
21
+ ).set(
22
+ body_background_fill='*primary_100',
23
+ body_text_color='secondary_600',
24
+ body_text_color_subdued='*primary_500',
25
+ body_text_weight='500',
26
+ background_fill_primary='*primary_100',
27
+ background_fill_secondary='*secondary_200',
28
+ color_accent='*primary_300',
29
+ border_color_accent_subdued='*primary_400',
30
+ border_color_primary='*primary_400',
31
+ block_background_fill='*primary_300',
32
+ block_border_width='*panel_border_width',
33
+ block_info_text_color='*primary_700',
34
+ block_info_text_size='*text_md',
35
+ panel_background_fill='*primary_200',
36
+ accordion_text_color='*primary_600',
37
+ table_text_color='*primary_600',
38
+ input_background_fill='*primary_50',
39
+ input_background_fill_focus='*primary_100',
40
+ button_primary_background_fill='*primary_500',
41
+ button_primary_background_fill_hover='*primary_400',
42
+ button_primary_text_color='*primary_50',
43
+ button_primary_text_color_hover='*primary_100',
44
+ button_cancel_background_fill='*primary_500',
45
+ button_cancel_background_fill_hover='*primary_400'
46
+ )
47
+ #----------End of theme----------
48
+
49
 
50
  API_TOKEN = os.getenv("HF_READ_TOKEN")
51
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
 
132
  }
133
  """
134
 
135
+ with gr.Blocks(theme=theme, css=css) as app:
136
  gr.HTML("<center><h1>FLUX.1-Dev with LoRA support</h1></center>")
137
  with gr.Column(elem_id="app-container"):
138
  with gr.Row():