Spaces:
Sleeping
Sleeping
Commit
·
566493c
1
Parent(s):
f00e8c8
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import math
|
| 3 |
+
|
| 4 |
+
def emi_calculator(principal,rate,time):
|
| 5 |
+
rate = rate/(12*100)
|
| 6 |
+
time = time*12
|
| 7 |
+
emi= ( principal*rate * pow(1 + rate, time))/(pow(1+rate , time)-1)
|
| 8 |
+
return round(emi,2)
|
| 9 |
+
|
| 10 |
+
iface = gr.Interface(fn=emi_calculator, inputs=["number","number","number"], outputs="text")
|
| 11 |
+
|
| 12 |
+
iface.launch(share=True)
|