Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import pandas as pd
|
|
3 |
import io
|
4 |
import matplotlib.pyplot as plt
|
5 |
from script import getSearchResult, getClustersWithGraph, compare_clusters
|
6 |
-
import os
|
7 |
|
8 |
app = marimo.App()
|
9 |
|
10 |
@app.cell
|
11 |
def _(mo):
|
12 |
csv_upload = mo.ui.file(label="Upload Keyword CSV (1 column)")
|
|
|
13 |
api_key = os.environ.get("GOOGLE_API_KEY", "")
|
14 |
cse_id = os.environ.get("GOOGLE_CSE_ID", "")
|
15 |
country = mo.ui.text(label="Country Code (e.g. UK)", value="UK")
|
@@ -69,4 +69,10 @@ def _(movement):
|
|
69 |
if movement is not None:
|
70 |
movement.sort_values(by="searchTerms", inplace=True)
|
71 |
movement.reset_index(drop=True, inplace=True)
|
72 |
-
return movement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import io
|
4 |
import matplotlib.pyplot as plt
|
5 |
from script import getSearchResult, getClustersWithGraph, compare_clusters
|
|
|
6 |
|
7 |
app = marimo.App()
|
8 |
|
9 |
@app.cell
|
10 |
def _(mo):
|
11 |
csv_upload = mo.ui.file(label="Upload Keyword CSV (1 column)")
|
12 |
+
import os
|
13 |
api_key = os.environ.get("GOOGLE_API_KEY", "")
|
14 |
cse_id = os.environ.get("GOOGLE_CSE_ID", "")
|
15 |
country = mo.ui.text(label="Country Code (e.g. UK)", value="UK")
|
|
|
69 |
if movement is not None:
|
70 |
movement.sort_values(by="searchTerms", inplace=True)
|
71 |
movement.reset_index(drop=True, inplace=True)
|
72 |
+
return movement is not None:
|
73 |
+
movement.sort_values(by="searchTerms", inplace=True)
|
74 |
+
movement.reset_index(drop=True, inplace=True)
|
75 |
+
return movement is not None:
|
76 |
+
movement.sort_values(by="searchTerms", inplace=True)
|
77 |
+
movement.reset_index(drop=True, inplace=True)
|
78 |
+
movement
|