abhicodes commited on
Commit
ddeb95f
·
verified ·
1 Parent(s): 7508f8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -174,7 +174,7 @@ with block:
174
 
175
  image_output = gr.Image()
176
  text_output = gr.Textbox(label="Text Content")
177
- text_sentiment = gr.Textbox(label="Text Sentiment")
178
  facial_output = gr.Label(label='Facial Data', container=True, scale=2)
179
 
180
  with gr.Row():
@@ -190,11 +190,11 @@ with block:
190
 
191
  lang_str = gr.Textbox(label="Language")
192
  text = gr.Textbox(label="Transcription")
193
- sentiment_output = gr.Textbox(label="Sentiment Analysis Results")
194
 
195
 
196
- btn = gr.Button("Transcribe")
197
 
198
- btn.click(inference, inputs=[image, text, audio, sentiment_option], outputs=[image_output, facial_output, text_output, text_sentiment, output_text_sentiment, lang_str, text, sentiment_output])
199
 
200
  block.launch()
 
174
 
175
  image_output = gr.Image()
176
  text_output = gr.Textbox(label="Text Content")
177
+ image_text_sentiment = gr.Textbox(label="Image Text Sentiment")
178
  facial_output = gr.Label(label='Facial Data', container=True, scale=2)
179
 
180
  with gr.Row():
 
190
 
191
  lang_str = gr.Textbox(label="Language")
192
  text = gr.Textbox(label="Transcription")
193
+ sentiment_output = gr.Textbox(label="Audio Text Sentiment")
194
 
195
 
196
+ btn = gr.Button("Run")
197
 
198
+ btn.click(inference, inputs=[image, text, audio, sentiment_option], outputs=[image_output, facial_output, text_output, image_text_sentiment, output_text_sentiment, lang_str, text, sentiment_output])
199
 
200
  block.launch()