arham061 commited on
Commit
60f0916
·
1 Parent(s): 4cc670a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -10,6 +10,15 @@ def classify_audio(filepath):
10
  outputs[p["label"]] = p["score"]
11
  return outputs
12
 
 
 
 
 
 
 
 
 
 
13
  import gradio as gr
14
 
15
  demo = gr.Interface(
@@ -17,7 +26,7 @@ demo = gr.Interface(
17
  inputs=gr.Audio(type="filepath"),
18
  outputs="label",
19
  examples = ['normal.wav', 'murmur.wav', 'extra_systole.wav', 'extra_hystole.wav', 'artifact.wav'],
20
- theme = "dark"
21
  )
22
 
23
  demo.launch(debug=True)
 
10
  outputs[p["label"]] = p["score"]
11
  return outputs
12
 
13
+ # Custom CSS for dark theme
14
+ custom_css = """
15
+ body {
16
+ background-color: #1e1e1e; /* Dark background color */
17
+ color: #ffffff; /* Light text color */
18
+ }
19
+ """
20
+
21
+
22
  import gradio as gr
23
 
24
  demo = gr.Interface(
 
26
  inputs=gr.Audio(type="filepath"),
27
  outputs="label",
28
  examples = ['normal.wav', 'murmur.wav', 'extra_systole.wav', 'extra_hystole.wav', 'artifact.wav'],
29
+ css=custom_css
30
  )
31
 
32
  demo.launch(debug=True)