Spaces:
Sleeping
Sleeping
Add application file
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(sale):
|
| 4 |
-
df = pd.read_csv('result' )
|
| 5 |
-
for(int i=0 ; i++ ; i<range(len(df))) :
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
return -1
|
| 9 |
|
| 10 |
iface = gr.Interface(fn=sale, inputs="int", outputs="text")
|
| 11 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(sale):
|
| 4 |
+
df = pd.read_csv('result' )
|
| 5 |
+
for(int i=0 ; i++ ; i<range(len(df))) :
|
| 6 |
+
if(df['customer'].iloc[i] == sale) :
|
| 7 |
+
return df['most_likely to buy'].loc[i]
|
| 8 |
+
return -1
|
| 9 |
|
| 10 |
iface = gr.Interface(fn=sale, inputs="int", outputs="text")
|
| 11 |
iface.launch()
|