Update app.py
Browse files
app.py
CHANGED
|
@@ -4,11 +4,5 @@ def square(x):
|
|
| 4 |
return x*x
|
| 5 |
|
| 6 |
# Create a Gradio interface
|
| 7 |
-
|
| 8 |
-
fn=square, # Specify your custom function
|
| 9 |
-
inputs="number", # Input type (text in this example)
|
| 10 |
-
outputs="number" # Output type (text in this example)
|
| 11 |
-
)
|
| 12 |
|
| 13 |
-
# Launch the Gradio interface
|
| 14 |
-
iface.launch()
|
|
|
|
| 4 |
return x*x
|
| 5 |
|
| 6 |
# Create a Gradio interface
|
| 7 |
+
gr.Interface(fn=square, inputs="number",outputs="number").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
|
|
|
|
|