ychenNLP commited on
Commit
cc37f03
1 Parent(s): 6047608

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -113,8 +113,19 @@ instruction = """
113
 
114
  1.将视频链接(支持Twitter、YouTube)复制粘贴至输入框,点击提交(Submit)即可;
115
  </div>"""
116
- # Create a text input component
117
- text_input = gr.inputs.Textbox()
 
 
 
 
 
 
 
 
 
 
 
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()