zionia commited on
Commit
5f5a773
·
verified ·
1 Parent(s): 692156b
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -76,12 +76,16 @@ with gr.Blocks() as demo:
76
  gr.Markdown(description)
77
  gr.Markdown(article)
78
 
79
- gr.Interface(
80
  fn=translate,
81
- inputs=textbox,
82
- outputs=output_text,
83
- title="Northern Sotho to English Translation"
84
- )
 
 
 
 
85
 
86
  with gr.Accordion("More Information", open=False):
87
  gr.Markdown("""
 
76
  gr.Markdown(description)
77
  gr.Markdown(article)
78
 
79
+ with gr.Interface(
80
  fn=translate,
81
+ title="Northern Sotho to English Translation",
82
+ description=description,
83
+ article=article,
84
+ inputs=gr.components.Textbox(lines=5, placeholder="Enter Northern Sotho text (maximum 5 lines)", label="Input"),
85
+ outputs="text"
86
+ ) as iface:
87
+ gr.markdown(logo, unsafe_allow_html=True)
88
+ iface.launch(enable_queue=True)
89
 
90
  with gr.Accordion("More Information", open=False):
91
  gr.Markdown("""