Create profi.py
Browse files
profi.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def process_inputs(P, G, T):
|
4 |
+
# Process the inputs and generate the output
|
5 |
+
output = (((float(P)-(2*float(P)/100))/float(G))*99.9/100)*float(T)
|
6 |
+
return output
|
7 |
+
|
8 |
+
input1 = gr.Textbox(label="Yatırılan Para")
|
9 |
+
input2 = gr.Textbox(label="Binance Global alış")
|
10 |
+
input3 = gr.Textbox(label="Binance TR satış")
|
11 |
+
output = gr.Textbox(label="Tahmini Kar")
|
12 |
+
|
13 |
+
interface = gr.Interface(fn=process_inputs, inputs=[input1, input2, input3], outputs=output)
|
14 |
+
interface.launch()
|