Update app.py
Browse files
app.py
CHANGED
|
@@ -65,13 +65,12 @@ def predict_language(text, top_k=3, threshold=0.5):
|
|
| 65 |
|
| 66 |
# Create Gradio interface
|
| 67 |
with gr.Blocks(title="OpenLID-v3 Language Identification") as demo:
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
Identify the language of any text with state-of-the-art accuracy.
|
| 72 |
-
Supports 194+ language varieties.
|
| 73 |
-
|
| 74 |
-
*Model: [HPLT/OpenLID-v3](https://huggingface.co/HPLT/OpenLID-v3)*
|
| 75 |
""")
|
| 76 |
|
| 77 |
with gr.Row():
|
|
|
|
| 65 |
|
| 66 |
# Create Gradio interface
|
| 67 |
with gr.Blocks(title="OpenLID-v3 Language Identification") as demo:
|
| 68 |
+
# Use HTML with target="_blank" to open in new tab
|
| 69 |
+
gr.HTML("""
|
| 70 |
+
<h1>OpenLID-v3 Language Identifier</h1>
|
| 71 |
+
<p>Identify the language of any text with state-of-the-art accuracy.<br>
|
| 72 |
+
Supports 194+ language varieties.</p>
|
| 73 |
+
<p><em>Model: <a href="https://huggingface.co/HPLT/OpenLID-v3" target="_blank" rel="noopener noreferrer">HPLT/OpenLID-v3</a></em></p>
|
|
|
|
| 74 |
""")
|
| 75 |
|
| 76 |
with gr.Row():
|