Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def detect_context(input_text, fallback_threshold=0.8, max_results=3):
|
|
| 59 |
return fallback_labels
|
| 60 |
|
| 61 |
# Translation client
|
| 62 |
-
translation_client = Client("Frenchizer/
|
| 63 |
|
| 64 |
def translate_text(input_text, context="general"):
|
| 65 |
# Append the context to the input text for the translation client (if needed)
|
|
@@ -95,7 +95,7 @@ interface = gr.Interface(
|
|
| 95 |
inputs="text",
|
| 96 |
outputs="text",
|
| 97 |
title="Frenchizer",
|
| 98 |
-
description="Translate text from English to French with optimized context detection."
|
| 99 |
)
|
| 100 |
|
| 101 |
interface.launch()
|
|
|
|
| 59 |
return fallback_labels
|
| 60 |
|
| 61 |
# Translation client
|
| 62 |
+
translation_client = Client("Frenchizer/space_7")
|
| 63 |
|
| 64 |
def translate_text(input_text, context="general"):
|
| 65 |
# Append the context to the input text for the translation client (if needed)
|
|
|
|
| 95 |
inputs="text",
|
| 96 |
outputs="text",
|
| 97 |
title="Frenchizer",
|
| 98 |
+
description="Translate text from English to French with optimized context detection and MarianMT model."
|
| 99 |
)
|
| 100 |
|
| 101 |
interface.launch()
|