vkovacs commited on
Commit
f7c3109
·
1 Parent(s): 20f3f13

remove columns

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -77,17 +77,15 @@ def predict_wrapper(text, language):
77
 
78
  with gr.Blocks() as demo:
79
  with gr.Row():
80
- with gr.Column():
81
- input_text = gr.Textbox(lines=6, label="Input Text", placeholder="Enter your text here...")
82
- language_choice = gr.Dropdown(choices=LANGUAGES, label="Language", value="English")
83
- predict_button = gr.Button("Submit")
84
-
85
- with gr.Column():
86
- result_table = gr.Dataframe(
87
- headers=["Sentence", "Prediction", "Confidence"],
88
- column_widths=["50%", "35%", "15%"]
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,