DigiP-AI commited on
Commit
d880348
·
verified ·
1 Parent(s): c724114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -34
app.py CHANGED
@@ -9,45 +9,12 @@ from transformers import AutoProcessor, AutoModelForCausalLM
9
  from diffusers import DiffusionPipeline
10
  import cv2
11
  from datetime import datetime
 
12
  from fastapi import FastAPI
13
 
14
  app = FastAPI()
15
 
16
 
17
- #----------Start of theme----------
18
- theme = gr.themes.Soft(
19
- primary_hue="zinc",
20
- secondary_hue="stone",
21
- font=[gr.themes.GoogleFont('Kavivanar'), gr.themes.GoogleFont('Kavivanar'), 'system-ui', 'sans-serif'],
22
- font_mono=[gr.themes.GoogleFont('Source Code Pro'), gr.themes.GoogleFont('Inconsolata'), gr.themes.GoogleFont('Inconsolata'), 'monospace'],
23
- ).set(
24
- body_background_fill='*primary_100',
25
- body_text_color='secondary_600',
26
- body_text_color_subdued='*primary_500',
27
- body_text_weight='500',
28
- background_fill_primary='*primary_100',
29
- background_fill_secondary='*secondary_200',
30
- color_accent='*primary_300',
31
- border_color_accent_subdued='*primary_400',
32
- border_color_primary='*primary_400',
33
- block_background_fill='*primary_300',
34
- block_border_width='*panel_border_width',
35
- block_info_text_color='*primary_700',
36
- block_info_text_size='*text_md',
37
- panel_background_fill='*primary_200',
38
- accordion_text_color='*primary_600',
39
- table_text_color='*primary_600',
40
- input_background_fill='*primary_50',
41
- input_background_fill_focus='*primary_100',
42
- button_primary_background_fill='*primary_500',
43
- button_primary_background_fill_hover='*primary_400',
44
- button_primary_text_color='*primary_50',
45
- button_primary_text_color_hover='*primary_100',
46
- button_cancel_background_fill='*primary_500',
47
- button_cancel_background_fill_hover='*primary_400'
48
- )
49
- #----------End of theme----------
50
-
51
  def flip_image(x):
52
  return np.fliplr(x)
53
 
 
9
  from diffusers import DiffusionPipeline
10
  import cv2
11
  from datetime import datetime
12
+ from theme import theme
13
  from fastapi import FastAPI
14
 
15
  app = FastAPI()
16
 
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  def flip_image(x):
19
  return np.fliplr(x)
20