dammy commited on
Commit
1702c34
·
1 Parent(s): 739313b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -1,15 +1,21 @@
1
  import gradio as gr
2
 
3
- def generate_text(text):
4
- print('entered here ....')
5
- return 'success'
6
 
7
- with gr.Blocks() as demo:
8
- input_box = gr.Textbox(label="Enter your input")
9
- input_button = gr.Button("Submit")
10
- input_output = gr.Textbox(label="Result")
11
 
12
- input_button.click(generate_text, input_box, input_output)
 
 
 
 
 
 
13
 
14
  demo.launch()
15
 
 
1
  import gradio as gr
2
 
3
+ # def generate_text(text):
4
+ # print('entered here ....')
5
+ # return 'success'
6
 
7
+ # with gr.Blocks() as demo:
8
+ # input_box = gr.Textbox(label="Enter your input")
9
+ # input_button = gr.Button("Submit")
10
+ # input_output = gr.Textbox(label="Result")
11
 
12
+ # input_button.click(generate_text, input_box, input_output)
13
+
14
+ # demo.launch()
15
+
16
+ import gradio as gr
17
+
18
+ demo = gr.load("Helsinki-NLP/opus-mt-en-es", src="models")
19
 
20
  demo.launch()
21