Spaces:
Sleeping
Sleeping
vkovacs
commited on
Commit
·
f7c3109
1
Parent(s):
20f3f13
remove columns
Browse files
app.py
CHANGED
@@ -77,17 +77,15 @@ def predict_wrapper(text, language):
|
|
77 |
|
78 |
with gr.Blocks() as demo:
|
79 |
with gr.Row():
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
)
|
90 |
-
model_info = gr.Markdown()
|
91 |
|
92 |
predict_button.click(
|
93 |
fn=predict_wrapper,
|
|
|
77 |
|
78 |
with gr.Blocks() as demo:
|
79 |
with gr.Row():
|
80 |
+
input_text = gr.Textbox(lines=6, label="Input Text", placeholder="Enter your text here...")
|
81 |
+
language_choice = gr.Dropdown(choices=LANGUAGES, label="Language", value="English")
|
82 |
+
predict_button = gr.Button("Submit")
|
83 |
+
|
84 |
+
result_table = gr.Dataframe(
|
85 |
+
headers=["Sentence", "Prediction", "Confidence"],
|
86 |
+
column_widths=["50%", "35%", "15%"]
|
87 |
+
)
|
88 |
+
model_info = gr.Markdown()
|
|
|
|
|
89 |
|
90 |
predict_button.click(
|
91 |
fn=predict_wrapper,
|