Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def calculate_rfm(df):
|
|
| 63 |
|
| 64 |
def read_csv(file):
|
| 65 |
df = pd.read_csv(file.name)
|
| 66 |
-
return calculate_rfm(df)
|
| 67 |
|
| 68 |
iface = gr.Interface(fn=read_csv,
|
| 69 |
inputs=[gr.inputs.File(label="Select a CSV file")],
|
|
|
|
| 63 |
|
| 64 |
def read_csv(file):
|
| 65 |
df = pd.read_csv(file.name)
|
| 66 |
+
return calculate_rfm(df).head(10)
|
| 67 |
|
| 68 |
iface = gr.Interface(fn=read_csv,
|
| 69 |
inputs=[gr.inputs.File(label="Select a CSV file")],
|