Spaces:
Sleeping
Sleeping
home changes
Browse files- backend/api/main.py +1 -1
- backend/modules/home_page.py +1 -1
backend/api/main.py
CHANGED
|
@@ -15,7 +15,7 @@ def home():
|
|
| 15 |
|
| 16 |
@app.get("/contient")
|
| 17 |
def display_contients():
|
| 18 |
-
continent = home_page.contients(df)
|
| 19 |
return continent.tolist()
|
| 20 |
|
| 21 |
@app.get("/countries")
|
|
|
|
| 15 |
|
| 16 |
@app.get("/contient")
|
| 17 |
def display_contients():
|
| 18 |
+
continent = home_page. contients(df)
|
| 19 |
return continent.tolist()
|
| 20 |
|
| 21 |
@app.get("/countries")
|
backend/modules/home_page.py
CHANGED
|
@@ -9,7 +9,7 @@ def process_data():
|
|
| 9 |
return df
|
| 10 |
|
| 11 |
def contient(df):
|
| 12 |
-
contients=df["
|
| 13 |
return contients
|
| 14 |
|
| 15 |
def country(df):
|
|
|
|
| 9 |
return df
|
| 10 |
|
| 11 |
def contient(df):
|
| 12 |
+
contients=df["Continent"].unique()
|
| 13 |
return contients
|
| 14 |
|
| 15 |
def country(df):
|