MesutUnutur commited on
Commit
f58fee2
1 Parent(s): 5d04f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,15 +1,15 @@
1
  import gradio as gr
2
- deToEng = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-tr-en")
3
  text_to_image = gr.Interface.load("huggingface/runwayml/stable-diffusion-v1-5")
4
 
5
  with gr.Blocks() as demo:
6
- title = "Translate from German to English and English text to image"
7
 
8
- de_text = gr.Textbox(placeholder="Almanca cümle")
9
- translate_btn = gr.Button("translate from german to english")
10
 
11
  eng_text = gr.Textbox(label="ingilizce")
12
- translate_btn.click(deToEng, de_text, eng_text)
13
 
14
  text_to_image_btn = gr.Button("text to image")
15
 
 
1
  import gradio as gr
2
+ trToEng = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-tr-en")
3
  text_to_image = gr.Interface.load("huggingface/runwayml/stable-diffusion-v1-5")
4
 
5
  with gr.Blocks() as demo:
6
+ title = "Translate from Turkish to English and English text to image"
7
 
8
+ de_text = gr.Textbox(placeholder="Türkçe cümle")
9
+ translate_btn = gr.Button("translate from Turkish to english")
10
 
11
  eng_text = gr.Textbox(label="ingilizce")
12
+ translate_btn.click(trToEng, de_text, eng_text)
13
 
14
  text_to_image_btn = gr.Button("text to image")
15