Update app.py
Browse files
app.py
CHANGED
@@ -113,8 +113,19 @@ instruction = """
|
|
113 |
|
114 |
1.将视频链接(支持Twitter、YouTube)复制粘贴至输入框,点击提交(Submit)即可;
|
115 |
</div>"""
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
demo = gr.Interface(fn=asr,
|
120 |
inputs=gr.inputs.Textbox(label="粘贴视频链接"),
|
@@ -124,6 +135,8 @@ demo = gr.Interface(fn=asr,
|
|
124 |
],
|
125 |
title=title,
|
126 |
description=instruction,
|
127 |
-
theme="JohnSmith9982/small_and_pretty"
|
|
|
|
|
128 |
demo.queue()
|
129 |
-
demo.launch()
|
|
|
113 |
|
114 |
1.将视频链接(支持Twitter、YouTube)复制粘贴至输入框,点击提交(Submit)即可;
|
115 |
</div>"""
|
116 |
+
|
117 |
+
css = """
|
118 |
+
@media (prefers-color-scheme: dark) {
|
119 |
+
.gradio-textbox {
|
120 |
+
color: white !important;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
@media (prefers-color-scheme: light) {
|
124 |
+
.gradio-textbox {
|
125 |
+
color: black !important;
|
126 |
+
}
|
127 |
+
}
|
128 |
+
"""
|
129 |
|
130 |
demo = gr.Interface(fn=asr,
|
131 |
inputs=gr.inputs.Textbox(label="粘贴视频链接"),
|
|
|
135 |
],
|
136 |
title=title,
|
137 |
description=instruction,
|
138 |
+
theme="JohnSmith9982/small_and_pretty",
|
139 |
+
css=css)
|
140 |
+
|
141 |
demo.queue()
|
142 |
+
demo.launch()
|