datasciencedojo commited on
Commit
2a44a58
1 Parent(s): 6bf4826
Files changed (1) hide show
  1. app.py +68 -1
app.py CHANGED
@@ -37,6 +37,72 @@ def transcribe(microphone, file_upload):
37
 
38
  demo = gr.Blocks()
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  examples = [
41
  ['TestAudio1.mp3'], ['TestAudio2.wav'], ['TestAudio3.wav'], ['TestAudio4.wav'], ['TestAudio5.wav'], ['TestAudio6.wav'], ['TestAudio7.wav'], ['TestAudio8.wav'], ['TestAudio9.wav'], ['TestAudio10.wav']
42
  ]
@@ -51,7 +117,8 @@ mf_transcribe = gr.Interface(
51
  layout="horizontal",
52
  theme="huggingface",
53
  allow_flagging="never",
54
- examples = examples
 
55
  ).launch(enable_queue=True)
56
 
57
  #used openai/whisper model
 
37
 
38
  demo = gr.Blocks()
39
 
40
+ css = """
41
+ footer {display:none !important}
42
+ .output-markdown{display:none !important}
43
+ .gr-button-primary {
44
+ z-index: 14;
45
+ height: 43px;
46
+ width: 130px;
47
+ left: 0px;
48
+ top: 0px;
49
+ padding: 0px;
50
+ cursor: pointer !important;
51
+ background: none rgb(17, 20, 45) !important;
52
+ border: none !important;
53
+ text-align: center !important;
54
+ font-family: Poppins !important;
55
+ font-size: 14px !important;
56
+ font-weight: 500 !important;
57
+ color: rgb(255, 255, 255) !important;
58
+ line-height: 1 !important;
59
+ border-radius: 12px !important;
60
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
61
+ box-shadow: none !important;
62
+ }
63
+ .gr-button-primary:hover{
64
+ z-index: 14;
65
+ height: 43px;
66
+ width: 130px;
67
+ left: 0px;
68
+ top: 0px;
69
+ padding: 0px;
70
+ cursor: pointer !important;
71
+ background: none rgb(37, 56, 133) !important;
72
+ border: none !important;
73
+ text-align: center !important;
74
+ font-family: Poppins !important;
75
+ font-size: 14px !important;
76
+ font-weight: 500 !important;
77
+ color: rgb(255, 255, 255) !important;
78
+ line-height: 1 !important;
79
+ border-radius: 12px !important;
80
+ transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
81
+ box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
82
+ }
83
+ .hover\:bg-orange-50:hover {
84
+ --tw-bg-opacity: 1 !important;
85
+ background-color: rgb(229,225,255) !important;
86
+ }
87
+ .to-orange-200 {
88
+ --tw-gradient-to: rgb(37 56 133 / 37%) !important;
89
+ }
90
+ .from-orange-400 {
91
+ --tw-gradient-from: rgb(17, 20, 45) !important;
92
+ --tw-gradient-to: rgb(255 150 51 / 0);
93
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
94
+ }
95
+ .group-hover\:from-orange-500{
96
+ --tw-gradient-from:rgb(17, 20, 45) !important;
97
+ --tw-gradient-to: rgb(37 56 133 / 37%);
98
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
99
+ }
100
+ .group:hover .group-hover\:text-orange-500{
101
+ --tw-text-opacity: 1 !important;
102
+ color:rgb(37 56 133 / var(--tw-text-opacity)) !important;
103
+ }
104
+ """
105
+
106
  examples = [
107
  ['TestAudio1.mp3'], ['TestAudio2.wav'], ['TestAudio3.wav'], ['TestAudio4.wav'], ['TestAudio5.wav'], ['TestAudio6.wav'], ['TestAudio7.wav'], ['TestAudio8.wav'], ['TestAudio9.wav'], ['TestAudio10.wav']
108
  ]
 
117
  layout="horizontal",
118
  theme="huggingface",
119
  allow_flagging="never",
120
+ examples = examples,
121
+ css = css
122
  ).launch(enable_queue=True)
123
 
124
  #used openai/whisper model