Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,6 @@ with gr.Blocks() as demo:
|
|
125 |
summary = gr.Textbox(lines=4)
|
126 |
sentiment_btn = gr.Button("Get Customer Sentiment")
|
127 |
analyzed = gr.HighlightedText(color_map=color_map)
|
128 |
-
plot = gr.Plot(label="Sentiment over time", type="plotly")
|
129 |
|
130 |
with gr.Column():
|
131 |
gr.Markdown("## Example Files")
|
@@ -146,6 +145,6 @@ with gr.Blocks() as demo:
|
|
146 |
check.change(fn=partial(summarize, summarization_pipeline=summarization_pipeline), inputs=[diarized, check], outputs=summary)
|
147 |
|
148 |
# when sentiment button clicked, display highlighted text and plot
|
149 |
-
sentiment_btn.click(fn=partial(sentiment, emotion_pipeline=emotion_pipeline), inputs=diarized, outputs=[analyzed
|
150 |
|
151 |
demo.launch(debug=1)
|
|
|
125 |
summary = gr.Textbox(lines=4)
|
126 |
sentiment_btn = gr.Button("Get Customer Sentiment")
|
127 |
analyzed = gr.HighlightedText(color_map=color_map)
|
|
|
128 |
|
129 |
with gr.Column():
|
130 |
gr.Markdown("## Example Files")
|
|
|
145 |
check.change(fn=partial(summarize, summarization_pipeline=summarization_pipeline), inputs=[diarized, check], outputs=summary)
|
146 |
|
147 |
# when sentiment button clicked, display highlighted text and plot
|
148 |
+
sentiment_btn.click(fn=partial(sentiment, emotion_pipeline=emotion_pipeline), inputs=diarized, outputs=[analyzed])
|
149 |
|
150 |
demo.launch(debug=1)
|