Spaces:
Sleeping
Sleeping
Add application file
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
def greet(sale):
|
| 4 |
df = pd.read_csv('result' )
|
| 5 |
-
for
|
| 6 |
if(df['customer'].iloc[i] == sale) :
|
| 7 |
return df['most_likely to buy'].loc[i]
|
| 8 |
return -1
|
|
|
|
| 2 |
|
| 3 |
def greet(sale):
|
| 4 |
df = pd.read_csv('result' )
|
| 5 |
+
for i in range(len(df):
|
| 6 |
if(df['customer'].iloc[i] == sale) :
|
| 7 |
return df['most_likely to buy'].loc[i]
|
| 8 |
return -1
|