Spaces:
Build error
Build error
Commit
·
a9cdc56
1
Parent(s):
5d9b7cd
Add application file
Browse files- .ipynb_checkpoints/app-checkpoint.py +7 -7
- app.py +7 -7
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -84,24 +84,24 @@ with demo:
|
|
| 84 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 85 |
with gr.Column():
|
| 86 |
with gr.Row():
|
| 87 |
-
|
| 88 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 89 |
with gr.Column():
|
| 90 |
with gr.Row():
|
| 91 |
-
|
| 92 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 93 |
with gr.Row():
|
| 94 |
b4 = gr.Button("Sentiment of Summary-I/ Summary-II/ Summary-III")
|
| 95 |
with gr.Column():
|
| 96 |
with gr.Row():
|
| 97 |
-
|
| 98 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 99 |
with gr.Column():
|
| 100 |
with gr.Row():
|
| 101 |
-
|
| 102 |
-
b4.click(text_to_sentiment, inputs=stext1, outputs=
|
| 103 |
with gr.Column():
|
| 104 |
with gr.Row():
|
| 105 |
-
|
| 106 |
-
b4.click(text_to_sentiment, inputs=stext2, outputs=
|
| 107 |
demo.launch()
|
|
|
|
| 84 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 85 |
with gr.Column():
|
| 86 |
with gr.Row():
|
| 87 |
+
stext1 = gr.Textbox()
|
| 88 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 89 |
with gr.Column():
|
| 90 |
with gr.Row():
|
| 91 |
+
stext2 = gr.Textbox()
|
| 92 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 93 |
with gr.Row():
|
| 94 |
b4 = gr.Button("Sentiment of Summary-I/ Summary-II/ Summary-III")
|
| 95 |
with gr.Column():
|
| 96 |
with gr.Row():
|
| 97 |
+
label = gr.Label()
|
| 98 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 99 |
with gr.Column():
|
| 100 |
with gr.Row():
|
| 101 |
+
label1 = gr.Label()
|
| 102 |
+
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 103 |
with gr.Column():
|
| 104 |
with gr.Row():
|
| 105 |
+
label2 = gr.Label()
|
| 106 |
+
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 107 |
demo.launch()
|
app.py
CHANGED
|
@@ -84,24 +84,24 @@ with demo:
|
|
| 84 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 85 |
with gr.Column():
|
| 86 |
with gr.Row():
|
| 87 |
-
|
| 88 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 89 |
with gr.Column():
|
| 90 |
with gr.Row():
|
| 91 |
-
|
| 92 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 93 |
with gr.Row():
|
| 94 |
b4 = gr.Button("Sentiment of Summary-I/ Summary-II/ Summary-III")
|
| 95 |
with gr.Column():
|
| 96 |
with gr.Row():
|
| 97 |
-
|
| 98 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 99 |
with gr.Column():
|
| 100 |
with gr.Row():
|
| 101 |
-
|
| 102 |
-
b4.click(text_to_sentiment, inputs=stext1, outputs=
|
| 103 |
with gr.Column():
|
| 104 |
with gr.Row():
|
| 105 |
-
|
| 106 |
-
b4.click(text_to_sentiment, inputs=stext2, outputs=
|
| 107 |
demo.launch()
|
|
|
|
| 84 |
b3.click(summarize_text, inputs=text, outputs=stext)
|
| 85 |
with gr.Column():
|
| 86 |
with gr.Row():
|
| 87 |
+
stext1 = gr.Textbox()
|
| 88 |
b3.click(summarize_text1, inputs=text, outputs=stext1)
|
| 89 |
with gr.Column():
|
| 90 |
with gr.Row():
|
| 91 |
+
stext2 = gr.Textbox()
|
| 92 |
b3.click(summarize_text2, inputs=text, outputs=stext2)
|
| 93 |
with gr.Row():
|
| 94 |
b4 = gr.Button("Sentiment of Summary-I/ Summary-II/ Summary-III")
|
| 95 |
with gr.Column():
|
| 96 |
with gr.Row():
|
| 97 |
+
label = gr.Label()
|
| 98 |
b4.click(text_to_sentiment, inputs=stext, outputs=label)
|
| 99 |
with gr.Column():
|
| 100 |
with gr.Row():
|
| 101 |
+
label1 = gr.Label()
|
| 102 |
+
b4.click(text_to_sentiment, inputs=stext1, outputs=label1)
|
| 103 |
with gr.Column():
|
| 104 |
with gr.Row():
|
| 105 |
+
label2 = gr.Label()
|
| 106 |
+
b4.click(text_to_sentiment, inputs=stext2, outputs=label2)
|
| 107 |
demo.launch()
|