Spaces:
Running
Running
vickeee465
commited on
Commit
·
8106682
1
Parent(s):
ccd8c01
placeholder texts
Browse files
app.py
CHANGED
@@ -221,6 +221,7 @@ def predict_wrapper(text, language):
|
|
221 |
|
222 |
|
223 |
with gr.Blocks() as demo:
|
|
|
224 |
with gr.Row():
|
225 |
with gr.Column():
|
226 |
input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")
|
@@ -231,20 +232,31 @@ with gr.Blocks() as demo:
|
|
231 |
predict_button = gr.Button("Submit")
|
232 |
|
233 |
with gr.Row():
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
|
|
|
|
240 |
with gr.Row():
|
241 |
-
|
|
|
|
|
|
|
242 |
|
243 |
with gr.Row():
|
244 |
-
|
|
|
|
|
|
|
245 |
|
246 |
with gr.Row():
|
247 |
-
|
|
|
|
|
|
|
248 |
|
249 |
with gr.Row():
|
250 |
model_info = gr.Markdown()
|
|
|
221 |
|
222 |
|
223 |
with gr.Blocks() as demo:
|
224 |
+
placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
225 |
with gr.Row():
|
226 |
with gr.Column():
|
227 |
input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")
|
|
|
232 |
predict_button = gr.Button("Submit")
|
233 |
|
234 |
with gr.Row():
|
235 |
+
with gr.Column(scale=7):
|
236 |
+
result_table = gr.Dataframe(
|
237 |
+
headers=["Sentence", "Prediction", "Confidence"],
|
238 |
+
column_widths=["65%", "25%", "10%"],
|
239 |
+
wrap=True # important
|
240 |
+
)
|
241 |
+
with gr.Column(scale=3):
|
242 |
+
gr.Markdown(placeholder)
|
243 |
with gr.Row():
|
244 |
+
with gr.Column(scale=7):
|
245 |
+
plot = gr.Plot()
|
246 |
+
with gr.Column(scale=3):
|
247 |
+
gr.Markdown(placeholder)
|
248 |
|
249 |
with gr.Row():
|
250 |
+
with gr.Column(scale=7):
|
251 |
+
piechart = gr.Plot()
|
252 |
+
with gr.Column(scale=3):
|
253 |
+
gr.Markdown(placeholder)
|
254 |
|
255 |
with gr.Row():
|
256 |
+
with gr.Column(scale=7):
|
257 |
+
heatmap = gr.Plot()
|
258 |
+
with gr.Column(scale=3):
|
259 |
+
gr.Markdown(placeholder)
|
260 |
|
261 |
with gr.Row():
|
262 |
model_info = gr.Markdown()
|