anzorq commited on
Commit
f751f4e
1 Parent(s): ac0fe1d
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -30,7 +30,9 @@ output = gr.outputs.Textbox()
30
  num_beams = gr.inputs.Slider(2, 10, step=1, label="Number of beams", default=4)
31
  num_return_sequences = gr.inputs.Slider(2, 10, step=1, label="Number of returned sequences", default=4)
32
 
33
- title("Russian-Circassian translator")
 
 
34
  examples = [
35
  ["Мы идем домой"],
36
  ["Сегодня хорошая погода"],
@@ -41,13 +43,12 @@ examples = [
41
  ["Bir şeyler yapmak istiyorum."],
42
  ]
43
 
44
- iface = gr.Interface(
45
  fn=translate,
46
  inputs=["text", num_beams, num_return_sequences],
47
  outputs=output,
48
  title=title,
49
- examples=examples,)
50
- iface.launch()
51
 
52
  # import gradio as gr
53
 
 
30
  num_beams = gr.inputs.Slider(2, 10, step=1, label="Number of beams", default=4)
31
  num_return_sequences = gr.inputs.Slider(2, 10, step=1, label="Number of returned sequences", default=4)
32
 
33
+
34
+ title = "Russian-Circassian translator"
35
+
36
  examples = [
37
  ["Мы идем домой"],
38
  ["Сегодня хорошая погода"],
 
43
  ["Bir şeyler yapmak istiyorum."],
44
  ]
45
 
46
+ gr.Interface(
47
  fn=translate,
48
  inputs=["text", num_beams, num_return_sequences],
49
  outputs=output,
50
  title=title,
51
+ examples=examples,).launch()
 
52
 
53
  # import gradio as gr
54