Spaces:
Sleeping
Sleeping
File size: 314 Bytes
63c2976 c0123ad |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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"])
iface.launch() |