File size: 241 Bytes
a35aae1
 
 
 
1
2
3
4
inputs = gr.inputs.Textbox(lines=1, label="Enter an arithmetic expression")
outputs = gr.outputs.Textbox(label="Result")
interface = gr.Interface(fn=calculate_expression, inputs=inputs, outputs=outputs, title="Calculator")
interface.launch()