peb-peb commited on
Commit
4befcc4
1 Parent(s): 14473ff
Files changed (1) hide show
  1. app.py +6 -14
app.py CHANGED
@@ -93,17 +93,9 @@ def get_output(segments):
93
  return output
94
 
95
 
96
- iface = gr.Interface(
97
- title = 'Whisper with Speaker Recognition',
98
- fn=transcribe,
99
- inputs=[
100
- gr.inputs.Audio(source="upload", type="filepath"),
101
- gr.inputs.Number(default=2, label="Number of Speakers")
102
-
103
- ],
104
- outputs=[
105
- gr.outputs.Textbox(label='Transcript')
106
- ]
107
- ).launch()
108
-
109
- iface.launch()
 
93
  return output
94
 
95
 
96
+ with gr.Blocks as demo:
97
+ with gr.Box():
98
+ gr.Textbox(label="First")
99
+ gr.Textbox(label="Last")
100
+
101
+ demo.launch()