mskov commited on
Commit
1251c48
·
1 Parent(s): 3f39071

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -132,6 +132,10 @@ with gr.Blocks() as face:
132
  #transcribe_btn.click(inference)
133
  transcribe_btn.click(fn=inference, inputs=[audio, promptText, dropChoice, sliderChoice, convoState], outputs=[script, option1, option2, option3, option4, option5, latestConvo])
134
  option1.click(fn=appendPrediction, inputs=[option1, convoState], outputs=[latestConvo])
 
 
 
 
135
  #examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"], inputs=[options])
136
 
137
 
 
132
  #transcribe_btn.click(inference)
133
  transcribe_btn.click(fn=inference, inputs=[audio, promptText, dropChoice, sliderChoice, convoState], outputs=[script, option1, option2, option3, option4, option5, latestConvo])
134
  option1.click(fn=appendPrediction, inputs=[option1, convoState], outputs=[latestConvo])
135
+ option2.click(fn=appendPrediction, inputs=[option2, convoState], outputs=[latestConvo])
136
+ option3.click(fn=appendPrediction, inputs=[option3, convoState], outputs=[latestConvo])
137
+ option4.click(fn=appendPrediction, inputs=[option4, convoState], outputs=[latestConvo])
138
+ option5.click(fn=appendPrediction, inputs=[option5, convoState], outputs=[latestConvo])
139
  #examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"], inputs=[options])
140
 
141