tzzte commited on
Commit
e70f2ec
·
verified ·
1 Parent(s): 62194f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -116,17 +116,27 @@ if __name__ == "__main__":
116
  examples = [
117
  ["Recognize what the voice said and respond to it.", "./show_case/1.wav"],
118
  ["", "./show_case/2.wav"],
119
- ]
 
 
 
 
 
 
 
 
 
 
120
 
121
  iface = gr.Interface(
122
  fn=process_audio_text,
123
  inputs=[
124
- gr.Textbox(label="Input Text", value=examples[0][0]),
125
  gr.Audio(type="filepath", label="Upload Audio", value=examples[0][1])
126
  ],
127
  outputs=[
128
  gr.Audio(label="Streamed Audio", streaming=True, autoplay=True),
129
- gr.Textbox(label="Model output")
130
  ],
131
  examples=examples,
132
  live=False,
 
116
  examples = [
117
  ["Recognize what the voice said and respond to it.", "./show_case/1.wav"],
118
  ["", "./show_case/2.wav"],
119
+ ]
120
+
121
+ gr.HTML("""
122
+ <style>
123
+ .custom-textbox textarea {
124
+ font-family: "Menlo", monospace !important;
125
+ font-size: 20px !important;
126
+ }
127
+ </style>
128
+ """)
129
+
130
 
131
  iface = gr.Interface(
132
  fn=process_audio_text,
133
  inputs=[
134
+ gr.Textbox(label="Input Text", value=examples[0][0], elem_classes=["custom-textbox"]),
135
  gr.Audio(type="filepath", label="Upload Audio", value=examples[0][1])
136
  ],
137
  outputs=[
138
  gr.Audio(label="Streamed Audio", streaming=True, autoplay=True),
139
+ gr.Textbox(label="Model output", elem_classes=["custom-textbox"])
140
  ],
141
  examples=examples,
142
  live=False,