Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def translate_text(text, src_lang, target_lang):
|
4 |
+
# Ta fonction de traduction ici
|
5 |
+
return translated_text
|
6 |
+
|
7 |
+
interface = gr.Interface(fn=translate_text, inputs=[gr.Textbox(), gr.Radio(["fr", "li"]), gr.Radio(["fr", "li"])], outputs="text")
|
8 |
+
|
9 |
+
interface.launch()
|