mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
revert calculator_live changes
This commit is contained in:
parent
763585cf24
commit
503eb7bb53
@ -12,7 +12,7 @@ def calculator(num1, operation, num2):
|
||||
return num1 / num2
|
||||
|
||||
|
||||
demo = gr.Interface(
|
||||
iface = gr.Interface(
|
||||
calculator,
|
||||
["number", gr.inputs.Radio(["add", "subtract", "multiply", "divide"]), "number"],
|
||||
"number",
|
||||
@ -20,4 +20,4 @@ demo = gr.Interface(
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
demo.launch()
|
||||
iface.launch()
|
||||
|
Loading…
Reference in New Issue
Block a user