Spaces:
Runtime error
Runtime error
Update app.py
Browse files12345import gradio as gr# Create a layout for the calculatorlayout = gr.GridLayout(cols=3, rows=4)123456789101112131415161718192021222324252627282930313233343536import gradio as gr# Create a row for the first numberrow1 = gr.Row(children=[gr.Label('Number 1:'),gr.Entry(),])# Create a row for the second numberrow2 = gr.Row(children=[gr.Label('Number 2:'),gr.Entry(),])# Create a row for the operatorrow3 = gr.Row(children=[gr.Label('Operator:'),gr.Choice(options=['+', '-', '*', '/'])])# Create a row for the resultrow4 = gr.Row(children=[gr.Label('Result:')])# Create a column to hold the rowscolumn = gr.Column(children=[row1, row2, row3, row4])# Create a widget to hold the columnwidget = gr.Widget(column)# Run the GUI event loopgradio.run(widget)# Create a layout for the calculatorlayout = gr.GridLayout(cols=3, rows=4)
app.py+31