Update app.py
Browse files
app.py
CHANGED
|
@@ -71,9 +71,8 @@ with gr.Blocks() as interface:
|
|
| 71 |
input_text = gr.Textbox(label="Enter text to detect:", placeholder="Type your text here, maximum 512 tokens",
|
| 72 |
autofocus=True, submit_btn='Detect Language', max_length=512)
|
| 73 |
with gr.Row(variant="compact"):
|
| 74 |
-
detected_text = gr.Textbox(label="Translated text:", placeholder="Display field for translation", interactive=False, buttons=["copy"], lines=
|
| 75 |
-
confidence = gr.Textbox(label="Confidence:", placeholder="Display field for confidence score", interactive=False,
|
| 76 |
-
value=f'Default translation settings: from {s_language.value} to {t_language.value} with {model_name.value}.', lines=2)
|
| 77 |
input_text.submit(
|
| 78 |
fn=detect_language,
|
| 79 |
inputs=[input_text],
|
|
|
|
| 71 |
input_text = gr.Textbox(label="Enter text to detect:", placeholder="Type your text here, maximum 512 tokens",
|
| 72 |
autofocus=True, submit_btn='Detect Language', max_length=512)
|
| 73 |
with gr.Row(variant="compact"):
|
| 74 |
+
detected_text = gr.Textbox(label="Translated text:", placeholder="Display field for translation", interactive=False, buttons=["copy"], lines=1)
|
| 75 |
+
confidence = gr.Textbox(label="Confidence:", placeholder="Display field for confidence score", interactive=False, lines=1)
|
|
|
|
| 76 |
input_text.submit(
|
| 77 |
fn=detect_language,
|
| 78 |
inputs=[input_text],
|