camillelacan1 commited on
Commit
3a1ff29
·
1 Parent(s): ce07fb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -32,7 +32,9 @@ def convert_code(code, language):
32
  # Create the Gradio app
33
  app = gr.Interface(
34
  fn=convert_code,
35
- inputs=[gr.inputs.Textbox(lines=10, label="Code to convert"),gr.controls.Radio(["Python", "R"], label="Source language")],
36
- outputs=gr.outputs.Textbox(label="Converted code"))
 
 
37
 
38
  app.launch()
 
32
  # Create the Gradio app
33
  app = gr.Interface(
34
  fn=convert_code,
35
+ inputs=[gr.inputs.Textbox(lines=10, label="Code to convert"), gr.controls.Radio(["Python", "R"], label="Source language")],
36
+ controls=gr.controls.Radio(["Python", "R"], label="Source language"),
37
+ outputs=[gr.outputs.Textbox(label="Converted code")]
38
+ )
39
 
40
  app.launch()