Spaces:
Build error
Build error
Commit
•
1ca9d41
1
Parent(s):
3313bb3
Second Model Version
Browse files- .ipynb_checkpoints/app-checkpoint.py +5 -5
- app.py +5 -5
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -73,11 +73,11 @@ with demo:
|
|
73 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
74 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
75 |
with gr.Row():
|
76 |
-
b2 = gr.Button("Overall
|
77 |
fin_spans = gr.HighlightedText()
|
78 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
79 |
with gr.Row():
|
80 |
-
b3 = gr.Button("
|
81 |
with gr.Column():
|
82 |
with gr.Row():
|
83 |
stext = gr.Textbox(label="Model-I")
|
@@ -108,14 +108,14 @@ with demo:
|
|
108 |
b5 = gr.Button("Dialogue Sentiment Analysis")
|
109 |
with gr.Column():
|
110 |
with gr.Row():
|
111 |
-
fin_spans = gr.HighlightedText(label="
|
112 |
b5.click(sen_ext, inputs=stext, outputs=fin_spans)
|
113 |
with gr.Column():
|
114 |
with gr.Row():
|
115 |
-
fin_spans1 = gr.HighlightedText(label="
|
116 |
b5.click(sen_ext, inputs=stext1, outputs=fin_spans1)
|
117 |
with gr.Column():
|
118 |
with gr.Row():
|
119 |
-
fin_spans2 = gr.HighlightedText(label="
|
120 |
b5.click(sen_ext, inputs=stext2, outputs=fin_spans2)
|
121 |
demo.launch()
|
|
|
73 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
74 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
75 |
with gr.Row():
|
76 |
+
b2 = gr.Button("Overall Sentiment Analysis of Dialogues")
|
77 |
fin_spans = gr.HighlightedText()
|
78 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
79 |
with gr.Row():
|
80 |
+
b3 = gr.Button("Summary Text Outputs")
|
81 |
with gr.Column():
|
82 |
with gr.Row():
|
83 |
stext = gr.Textbox(label="Model-I")
|
|
|
108 |
b5 = gr.Button("Dialogue Sentiment Analysis")
|
109 |
with gr.Column():
|
110 |
with gr.Row():
|
111 |
+
fin_spans = gr.HighlightedText(label="Sentiment Of Summary-I Dialogues")
|
112 |
b5.click(sen_ext, inputs=stext, outputs=fin_spans)
|
113 |
with gr.Column():
|
114 |
with gr.Row():
|
115 |
+
fin_spans1 = gr.HighlightedText(label="Sentiment Of Summary-II Dialogues")
|
116 |
b5.click(sen_ext, inputs=stext1, outputs=fin_spans1)
|
117 |
with gr.Column():
|
118 |
with gr.Row():
|
119 |
+
fin_spans2 = gr.HighlightedText(label="Sentiment Of Summary-III Dialogues")
|
120 |
b5.click(sen_ext, inputs=stext2, outputs=fin_spans2)
|
121 |
demo.launch()
|
app.py
CHANGED
@@ -73,11 +73,11 @@ with demo:
|
|
73 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
74 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
75 |
with gr.Row():
|
76 |
-
b2 = gr.Button("Overall
|
77 |
fin_spans = gr.HighlightedText()
|
78 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
79 |
with gr.Row():
|
80 |
-
b3 = gr.Button("
|
81 |
with gr.Column():
|
82 |
with gr.Row():
|
83 |
stext = gr.Textbox(label="Model-I")
|
@@ -108,14 +108,14 @@ with demo:
|
|
108 |
b5 = gr.Button("Dialogue Sentiment Analysis")
|
109 |
with gr.Column():
|
110 |
with gr.Row():
|
111 |
-
fin_spans = gr.HighlightedText(label="
|
112 |
b5.click(sen_ext, inputs=stext, outputs=fin_spans)
|
113 |
with gr.Column():
|
114 |
with gr.Row():
|
115 |
-
fin_spans1 = gr.HighlightedText(label="
|
116 |
b5.click(sen_ext, inputs=stext1, outputs=fin_spans1)
|
117 |
with gr.Column():
|
118 |
with gr.Row():
|
119 |
-
fin_spans2 = gr.HighlightedText(label="
|
120 |
b5.click(sen_ext, inputs=stext2, outputs=fin_spans2)
|
121 |
demo.launch()
|
|
|
73 |
text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
|
74 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
75 |
with gr.Row():
|
76 |
+
b2 = gr.Button("Overall Sentiment Analysis of Dialogues")
|
77 |
fin_spans = gr.HighlightedText()
|
78 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
79 |
with gr.Row():
|
80 |
+
b3 = gr.Button("Summary Text Outputs")
|
81 |
with gr.Column():
|
82 |
with gr.Row():
|
83 |
stext = gr.Textbox(label="Model-I")
|
|
|
108 |
b5 = gr.Button("Dialogue Sentiment Analysis")
|
109 |
with gr.Column():
|
110 |
with gr.Row():
|
111 |
+
fin_spans = gr.HighlightedText(label="Sentiment Of Summary-I Dialogues")
|
112 |
b5.click(sen_ext, inputs=stext, outputs=fin_spans)
|
113 |
with gr.Column():
|
114 |
with gr.Row():
|
115 |
+
fin_spans1 = gr.HighlightedText(label="Sentiment Of Summary-II Dialogues")
|
116 |
b5.click(sen_ext, inputs=stext1, outputs=fin_spans1)
|
117 |
with gr.Column():
|
118 |
with gr.Row():
|
119 |
+
fin_spans2 = gr.HighlightedText(label="Sentiment Of Summary-III Dialogues")
|
120 |
b5.click(sen_ext, inputs=stext2, outputs=fin_spans2)
|
121 |
demo.launch()
|