mskov commited on
Commit
69f9968
·
1 Parent(s): 9b622fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -74,7 +74,10 @@ def inference(audio, prompt, model, temperature, latest):
74
  #infered = list(map(lambda x: x.split(','), infers))
75
 
76
 
77
- return transcript, infers, convoState: latest
 
 
 
78
 
79
 
80
  # get audio from microphone
@@ -92,7 +95,7 @@ with gr.Blocks() as face:
92
  options = gr.Textbox(label="Predictions")
93
  latestConvo = gr.Textbox(label="Running conversation")
94
  #transcribe_btn.click(inference)
95
- transcribe_btn.click(fn=inference, inputs=[audio, promptText, dropChoice, sliderChoice, convoState], outputs=[script, options, latestConvo])
96
  examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"], inputs=[options])
97
 
98
  face.launch()
 
74
  #infered = list(map(lambda x: x.split(','), infers))
75
 
76
 
77
+ return {
78
+ convoState: latest,
79
+ transcript,
80
+ infers}
81
 
82
 
83
  # get audio from microphone
 
95
  options = gr.Textbox(label="Predictions")
96
  latestConvo = gr.Textbox(label="Running conversation")
97
  #transcribe_btn.click(inference)
98
+ transcribe_btn.click(fn=inference, inputs=[audio, promptText, dropChoice, sliderChoice, convoState], outputs=[latestConvo, script, options])
99
  examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"], inputs=[options])
100
 
101
  face.launch()