Spaces:
Build error
Build error
Commit
·
508c01a
1
Parent(s):
b0bf7bb
Add application file
Browse files- .ipynb_checkpoints/app-checkpoint.py +8 -8
- app.py +8 -8
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -78,31 +78,31 @@ with demo:
|
|
| 78 |
fin_spans = gr.HighlightedText()
|
| 79 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
| 80 |
with gr.Row():
|
| 81 |
-
b3 = gr.Button("Summarization
|
| 82 |
with gr.Column():
|
| 83 |
with gr.Row():
|
| 84 |
-
stext = gr.Textbox()
|
| 85 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 86 |
with gr.Column():
|
| 87 |
with gr.Row():
|
| 88 |
-
stext1 = gr.Textbox()
|
| 89 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 90 |
with gr.Column():
|
| 91 |
with gr.Row():
|
| 92 |
-
stext2 = gr.Textbox()
|
| 93 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 94 |
with gr.Row():
|
| 95 |
-
b4 = gr.Button("Sentiment of
|
| 96 |
with gr.Column():
|
| 97 |
with gr.Row():
|
| 98 |
-
label = gr.Label()
|
| 99 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 100 |
with gr.Column():
|
| 101 |
with gr.Row():
|
| 102 |
-
label1 = gr.Label()
|
| 103 |
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 104 |
with gr.Column():
|
| 105 |
with gr.Row():
|
| 106 |
-
label2 = gr.Label()
|
| 107 |
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 108 |
demo.launch()
|
|
|
|
| 78 |
fin_spans = gr.HighlightedText()
|
| 79 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
| 80 |
with gr.Row():
|
| 81 |
+
b3 = gr.Button("Summarization Outputs")
|
| 82 |
with gr.Column():
|
| 83 |
with gr.Row():
|
| 84 |
+
stext = gr.Textbox(label="Model-I")
|
| 85 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 86 |
with gr.Column():
|
| 87 |
with gr.Row():
|
| 88 |
+
stext1 = gr.Textbox(label="Model-II")
|
| 89 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 90 |
with gr.Column():
|
| 91 |
with gr.Row():
|
| 92 |
+
stext2 = gr.Textbox(label="Model-III")
|
| 93 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 94 |
with gr.Row():
|
| 95 |
+
b4 = gr.Button("Sentiment of Summaries")
|
| 96 |
with gr.Column():
|
| 97 |
with gr.Row():
|
| 98 |
+
label = gr.Label(label="Sentiment Of Summary-I")
|
| 99 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 100 |
with gr.Column():
|
| 101 |
with gr.Row():
|
| 102 |
+
label1 = gr.Label(label="Sentiment Of Summary-II")
|
| 103 |
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 104 |
with gr.Column():
|
| 105 |
with gr.Row():
|
| 106 |
+
label2 = gr.Label(label="Sentiment Of Summary-III")
|
| 107 |
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 108 |
demo.launch()
|
app.py
CHANGED
|
@@ -78,31 +78,31 @@ with demo:
|
|
| 78 |
fin_spans = gr.HighlightedText()
|
| 79 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
| 80 |
with gr.Row():
|
| 81 |
-
b3 = gr.Button("Summarization
|
| 82 |
with gr.Column():
|
| 83 |
with gr.Row():
|
| 84 |
-
stext = gr.Textbox()
|
| 85 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 86 |
with gr.Column():
|
| 87 |
with gr.Row():
|
| 88 |
-
stext1 = gr.Textbox()
|
| 89 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 90 |
with gr.Column():
|
| 91 |
with gr.Row():
|
| 92 |
-
stext2 = gr.Textbox()
|
| 93 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 94 |
with gr.Row():
|
| 95 |
-
b4 = gr.Button("Sentiment of
|
| 96 |
with gr.Column():
|
| 97 |
with gr.Row():
|
| 98 |
-
label = gr.Label()
|
| 99 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 100 |
with gr.Column():
|
| 101 |
with gr.Row():
|
| 102 |
-
label1 = gr.Label()
|
| 103 |
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 104 |
with gr.Column():
|
| 105 |
with gr.Row():
|
| 106 |
-
label2 = gr.Label()
|
| 107 |
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 108 |
demo.launch()
|
|
|
|
| 78 |
fin_spans = gr.HighlightedText()
|
| 79 |
b2.click(sen_ext, inputs=text, outputs=fin_spans)
|
| 80 |
with gr.Row():
|
| 81 |
+
b3 = gr.Button("Summarization Outputs")
|
| 82 |
with gr.Column():
|
| 83 |
with gr.Row():
|
| 84 |
+
stext = gr.Textbox(label="Model-I")
|
| 85 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 86 |
with gr.Column():
|
| 87 |
with gr.Row():
|
| 88 |
+
stext1 = gr.Textbox(label="Model-II")
|
| 89 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 90 |
with gr.Column():
|
| 91 |
with gr.Row():
|
| 92 |
+
stext2 = gr.Textbox(label="Model-III")
|
| 93 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 94 |
with gr.Row():
|
| 95 |
+
b4 = gr.Button("Sentiment of Summaries")
|
| 96 |
with gr.Column():
|
| 97 |
with gr.Row():
|
| 98 |
+
label = gr.Label(label="Sentiment Of Summary-I")
|
| 99 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 100 |
with gr.Column():
|
| 101 |
with gr.Row():
|
| 102 |
+
label1 = gr.Label(label="Sentiment Of Summary-II")
|
| 103 |
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 104 |
with gr.Column():
|
| 105 |
with gr.Row():
|
| 106 |
+
label2 = gr.Label(label="Sentiment Of Summary-III")
|
| 107 |
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 108 |
demo.launch()
|