tzzte commited on
Commit
e59c38f
·
verified ·
1 Parent(s): bd3cbc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -121,22 +121,16 @@ if __name__ == "__main__":
121
  iface = gr.Interface(
122
  fn=process_audio_text,
123
  inputs=[
124
- gr.Textbox(label="Input Text", value=examples[0][0], elem_classes=["custom-textbox"]),
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", elem_classes=["custom-textbox"])
130
  ],
131
  examples=examples,
132
  live=False,
133
- allow_flagging="never",
134
- css="""
135
- .custom-textbox textarea {
136
- font-family: "Menlo", monospace !important;
137
- font-size: 20px !important;
138
- }
139
- """
140
  )
141
 
142
  iface.launch(server_name="0.0.0.0", server_port=7860, share=False)
 
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,
133
+ allow_flagging="never"
 
 
 
 
 
 
134
  )
135
 
136
  iface.launch(server_name="0.0.0.0", server_port=7860, share=False)