From e9386f5838120f5ecfb99cebe9f762267aac209c Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 21 Mar 2022 13:29:23 -0700 Subject: [PATCH] updated imports to components.py --- demo/calculator/run.py | 2 +- demo/diff_texts/run.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/calculator/run.py b/demo/calculator/run.py index 625531edab..fea6ec2b95 100644 --- a/demo/calculator/run.py +++ b/demo/calculator/run.py @@ -14,7 +14,7 @@ def calculator(num1, operation, num2): iface = gr.Interface( calculator, - ["number", gr.inputs.Radio(["add", "subtract", "multiply", "divide"]), "number"], + ["number", gr.Radio(["add", "subtract", "multiply", "divide"]), "number"], "number", examples=[ [5, "add", 3], diff --git a/demo/diff_texts/run.py b/demo/diff_texts/run.py index 48f3ae310e..cfa496d90e 100644 --- a/demo/diff_texts/run.py +++ b/demo/diff_texts/run.py @@ -14,12 +14,12 @@ def diff_texts(text1, text2): iface = gr.Interface( diff_texts, [ - gr.inputs.Textbox( + gr.Textbox( lines=3, default="The quick brown fox jumped over the lazy dogs." ), - gr.inputs.Textbox(lines=3, default="The fast brown fox jumps over lazy dogs."), + gr.Textbox(lines=3, default="The fast brown fox jumps over lazy dogs."), ], - gr.outputs.HighlightedText(color_map={"+": "green", "-": "pink"}), + gr.HighlightedText(color_map={"+": "green", "-": "pink"}), ) if __name__ == "__main__": iface.launch()