Spaces:
Sleeping
Sleeping
Download app.py from douglasribeiro/blabla: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/douglasribeiro/blabla/resolve/main/app.py
- Command line
-
hf download hf://spaces/douglasribeiro/blabla/app.py
-
curl -L -o app.py https://huggingface.co/spaces/douglasribeiro/blabla/resolve/main/app.py
309 Bytes
| import gradio as gr | |
| def parcelas(pv, i, n): | |
| i = i/100 | |
| pmt = pv * (((1 + i)**n * i) / ((1 + i)**n - 1)) | |
| return f'O Valor das {n} parcelas é R$ {pmt:,.2f}' | |
| app = gr.Interface(fn=parcelas, | |
| inputs=[gr.Number(), gr.Number(),gr.Number()], | |
| outputs="text") | |
| app.launch() |