arham061 commited on
Commit
6bbaf78
·
1 Parent(s): 9f330a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -12,13 +12,25 @@ def classify_audio(filepath):
12
 
13
  import gradio as gr
14
 
 
 
 
 
 
 
 
 
 
 
 
15
  demo = gr.Interface(
16
  fn=classify_audio,
17
  inputs=gr.Audio(type="filepath"),
18
  outputs="label",
19
- examples = ['normal.wav', 'murmur.wav', 'extra_systole.wav', 'extra_hystole.wav', 'artifact.wav']
 
20
  )
21
 
22
- gr.Base(primary_hue("green"))
23
 
24
  demo.launch(debug=True)
 
12
 
13
  import gradio as gr
14
 
15
+ custom_theme = gr.Base(
16
+ primary_hue="red",
17
+ secondary_hue="blue",
18
+ neutral_hue="gray",
19
+ text_size="md",
20
+ spacing_size="lg",
21
+ radius_size="sm",
22
+ font=("Arial", "Helvetica", "sans-serif"),
23
+ font_mono=("Courier New", "monospace")
24
+ )
25
+
26
  demo = gr.Interface(
27
  fn=classify_audio,
28
  inputs=gr.Audio(type="filepath"),
29
  outputs="label",
30
+ examples = ['normal.wav', 'murmur.wav', 'extra_systole.wav', 'extra_hystole.wav', 'artifact.wav'],
31
+ theme=custom_theme
32
  )
33
 
34
+
35
 
36
  demo.launch(debug=True)