Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ from transformers import pipeline
|
|
2 |
generate=pipeline("translation_en_to_fr",model="t5-large")
|
3 |
import gradio as gr
|
4 |
|
5 |
-
title=""" <hi>
|
6 |
|
7 |
-
description="""<h5> This
|
8 |
|
9 |
def en_fr(english_text):
|
10 |
|
@@ -14,7 +14,7 @@ def en_fr(english_text):
|
|
14 |
|
15 |
return translation
|
16 |
|
17 |
-
demo =gr.Interface(fn=en_fr,inputs=gr.Textbox(label="English
|
18 |
|
19 |
if __name__ =="__main__":
|
20 |
demo.launch()
|
|
|
2 |
generate=pipeline("translation_en_to_fr",model="t5-large")
|
3 |
import gradio as gr
|
4 |
|
5 |
+
title=""" <hi> Convert your English text to French</h1>"""
|
6 |
|
7 |
+
description="""<h5> This app is for english french language translation</h5>"""
|
8 |
|
9 |
def en_fr(english_text):
|
10 |
|
|
|
14 |
|
15 |
return translation
|
16 |
|
17 |
+
demo =gr.Interface(fn=en_fr,inputs=gr.Textbox(label="English"),outputs=gr.Textbox(label="French"),title=title,description=description)
|
18 |
|
19 |
if __name__ =="__main__":
|
20 |
demo.launch()
|