Spaces:
Runtime error
Runtime error
Commit
·
3a1ff29
1
Parent(s):
ce07fb6
Update app.py
Browse files
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 |
-
|
|
|
|
|
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()
|