Spaces:
No application file
No application file
File size: 426 Bytes
79a132f |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
`# This is the main entry point for the Gradio app`
`import gradio as gr`
`from translate import translate_text`
`def main():`
` with gr.Blocks() as demo:`
` with demo.Form():`
` text = gr.Textbox(label="Enter English text")`
` submit = gr.Button("Translate")`
` output = gr.Textbox(label="Translated French text")`
` demo.launch()``
`if __name__ == "__main__":`
` main()`
|