mskov commited on
Commit
8d17e35
1 Parent(s): 29753d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -76,7 +76,7 @@ def inference(audio, prompt, model, temperature):
76
 
77
  # get audio from microphone
78
  with gr.Blocks() as face:
79
- #with gr.Row():
80
  with gr.Column():
81
  audio = gr.Audio(source="microphone", type="filepath")
82
  promptText = gr.inputs.Textbox(lines=15, placeholder="Enter a prompt here"),
@@ -86,8 +86,8 @@ with gr.Blocks() as face:
86
  with gr.Column():
87
  script = gr.Textbox(label="text...")
88
  options = gr.Textbox(label="predictions...")
89
-
90
- transcribe_btn.click(inference, inputs=[audio, promptText, dropChoice, sliderChoice], outputs=[script, options])
91
  #examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"])
92
 
93
  face.launch()
 
76
 
77
  # get audio from microphone
78
  with gr.Blocks() as face:
79
+ with gr.Row():
80
  with gr.Column():
81
  audio = gr.Audio(source="microphone", type="filepath")
82
  promptText = gr.inputs.Textbox(lines=15, placeholder="Enter a prompt here"),
 
86
  with gr.Column():
87
  script = gr.Textbox(label="text...")
88
  options = gr.Textbox(label="predictions...")
89
+ transcribe_btn.click(inference)
90
+ #transcribe_btn.click(inference, inputs=[audio, promptText, dropChoice, sliderChoice], outputs=[script, options])
91
  #examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"])
92
 
93
  face.launch()