Karthikeyan commited on
Commit
77de8cb
1 Parent(s): 77b6af6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -1
app.py CHANGED
@@ -4,6 +4,52 @@ import os
4
  import openai
5
  import re
6
  import plotly.graph_objects as go
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  class ResumeAnalyser:
9
  def __init__(self):
@@ -105,7 +151,7 @@ class ResumeAnalyser:
105
 
106
 
107
  def gradio_interface(self):
108
- with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as app:
109
  gr.HTML("""<img class="leftimage" align="left" src="https://templates.images.credential.net/1612472097627370951721412474196.png" alt="Image" width="210" height="210">
110
  <img class="rightimage" align="right" src="https://companieslogo.com/img/orig/RAND.AS_BIG-0f1935a4.png?t=1651813778" alt="Image" width="210" height="210">""")
111
 
 
4
  import openai
5
  import re
6
  import plotly.graph_objects as go
7
+ from __future__ import annotations
8
+ from typing import Iterable
9
+ import gradio as gr
10
+ from gradio.themes.base import Base
11
+ from gradio.themes.utils import colors, fonts, sizes
12
+ import time
13
+
14
+
15
+ class CustomTheme(Base):
16
+ def __init__(
17
+ self,
18
+ *,
19
+ primary_hue: colors.Color | str = colors.emerald,
20
+ secondary_hue: colors.Color | str = colors.blue,
21
+ neutral_hue: colors.Color | str = colors.gray,
22
+ spacing_size: sizes.Size | str = sizes.spacing_md,
23
+ radius_size: sizes.Size | str = sizes.radius_md,
24
+ text_size: sizes.Size | str = sizes.text_lg,
25
+ font: fonts.Font
26
+ | str
27
+ | Iterable[fonts.Font | str] = (
28
+ fonts.GoogleFont("Quicksand"),
29
+ "ui-sans-serif",
30
+ "sans-serif",
31
+ ),
32
+ font_mono: fonts.Font
33
+ | str
34
+ | Iterable[fonts.Font | str] = (
35
+ fonts.GoogleFont("IBM Plex Mono"),
36
+ "ui-monospace",
37
+ "monospace",
38
+ ),
39
+ ):
40
+ super().__init__(
41
+ primary_hue=primary_hue,
42
+ secondary_hue=secondary_hue,
43
+ neutral_hue=neutral_hue,
44
+ spacing_size=spacing_size,
45
+ radius_size=radius_size,
46
+ text_size=text_size,
47
+ font=font,
48
+ font_mono=font_mono,
49
+ )
50
+
51
+
52
+ hudson = CustomTheme()
53
 
54
  class ResumeAnalyser:
55
  def __init__(self):
 
151
 
152
 
153
  def gradio_interface(self):
154
+ with gr.Blocks(css="style.css",theme=hudson) as app:
155
  gr.HTML("""<img class="leftimage" align="left" src="https://templates.images.credential.net/1612472097627370951721412474196.png" alt="Image" width="210" height="210">
156
  <img class="rightimage" align="right" src="https://companieslogo.com/img/orig/RAND.AS_BIG-0f1935a4.png?t=1651813778" alt="Image" width="210" height="210">""")
157