cross-multiply / app.py
mishtert's picture
Create app.py
63c2976
raw
history blame
318 Bytes
import gradio as gr
#calculation
def calculate (for_this,this_much,how_much_for_this):
x = float(for_this)
y = float(this_much)
z = float(how_much_for_this)
answer = (y/x)*z
return answer
iface = gr.Interface(fn=calculate, inputs=["text", "text", "text"], outputs=["textbox"]).launch(share=True)