Navyabhat commited on
Commit
f26c377
·
verified ·
1 Parent(s): b2c894f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -40
app.py CHANGED
@@ -9,45 +9,6 @@ from gradio.themes.utils import colors, fonts, sizes
9
  import time
10
 
11
 
12
- class Seafoam(Base):
13
- def __init__(
14
- self,
15
- *,
16
- primary_hue: colors.Color | str = colors.emerald,
17
- secondary_hue: colors.Color | str = colors.blue,
18
- neutral_hue: colors.Color | str = colors.gray,
19
- spacing_size: sizes.Size | str = sizes.spacing_md,
20
- radius_size: sizes.Size | str = sizes.radius_md,
21
- text_size: sizes.Size | str = sizes.text_lg,
22
- font: fonts.Font
23
- | str
24
- | Iterable[fonts.Font | str] = (
25
- fonts.GoogleFont("Quicksand"),
26
- "ui-sans-serif",
27
- "sans-serif",
28
- ),
29
- font_mono: fonts.Font
30
- | str
31
- | Iterable[fonts.Font | str] = (
32
- fonts.GoogleFont("IBM Plex Mono"),
33
- "ui-monospace",
34
- "monospace",
35
- ),
36
- ):
37
- super().__init__(
38
- primary_hue=primary_hue,
39
- secondary_hue=secondary_hue,
40
- neutral_hue=neutral_hue,
41
- spacing_size=spacing_size,
42
- radius_size=radius_size,
43
- text_size=text_size,
44
- font=font,
45
- font_mono=font_mono,
46
- )
47
-
48
-
49
- seafoam = Seafoam()
50
-
51
  messages = []
52
 
53
  multimodal_phi2 = MultiModalPhi2(
@@ -105,7 +66,7 @@ def run(history, text, image, audio_upload, audio_mic):
105
  history.append((None, outputs.title()))
106
  return history, None, None, None, None
107
 
108
- with gr.Blocks(theme=seafoam) as demo:
109
  gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
110
 
111
  with gr.Row():
 
9
  import time
10
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  messages = []
13
 
14
  multimodal_phi2 = MultiModalPhi2(
 
66
  history.append((None, outputs.title()))
67
  return history, None, None, None, None
68
 
69
+ with gr.Blocks() as demo:
70
  gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
71
 
72
  with gr.Row():