awacke1 commited on
Commit
b9b6796
β€’
1 Parent(s): 3f34c57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ with demo:
58
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
59
  text = gr.Textbox()
60
  label = gr.Label()
61
- saved = gr.Label()
62
 
63
  b1 = gr.Button("Recognize Speech")
64
  b2 = gr.Button("Classify Sentiment")
@@ -66,6 +66,6 @@ with demo:
66
 
67
  b1.click(speech_to_text, inputs=audio_file, outputs=text)
68
  b2.click(text_to_sentiment, inputs=text, outputs=label)
69
- b3.click(text_to_sentiment, inputs=text, outputs=saved)
70
 
71
  demo.launch(share=True)
 
58
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
59
  text = gr.Textbox()
60
  label = gr.Label()
61
+ saved = gr.Textbox()
62
 
63
  b1 = gr.Button("Recognize Speech")
64
  b2 = gr.Button("Classify Sentiment")
 
66
 
67
  b1.click(speech_to_text, inputs=audio_file, outputs=text)
68
  b2.click(text_to_sentiment, inputs=text, outputs=label)
69
+ b3.click(upsert, inputs=text, outputs=saved)
70
 
71
  demo.launch(share=True)