Spaces:
Sleeping
Sleeping
Create app.py
Browse filesMultiplication Table
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def get_number(x, y):
|
| 4 |
+
return f"Results = {float(x) * float(y)}"
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(fn=get_number, inputs=["number", "number"], outputs="text",
|
| 7 |
+
title='Multiplication Table',
|
| 8 |
+
description='Enter two numbers from your choice to multiply them.')
|
| 9 |
+
|
| 10 |
+
iface.launch(inline=False) #This helps to launch our app.
|