MrFrijo commited on
Commit
85eb15f
·
verified ·
1 Parent(s): 473d0cf

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()