Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ with block:
|
|
174 |
|
175 |
image_output = gr.Image()
|
176 |
text_output = gr.Textbox(label="Text Content")
|
177 |
-
|
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="
|
194 |
|
195 |
|
196 |
-
btn = gr.Button("
|
197 |
|
198 |
-
btn.click(inference, inputs=[image, text, audio, sentiment_option], outputs=[image_output, facial_output, text_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()
|