update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,10 @@ data = pd.DataFrame(data)
|
|
27 |
|
28 |
|
29 |
def show_search_results(query):
|
30 |
-
|
31 |
-
|
|
|
|
|
32 |
return df_search
|
33 |
|
34 |
|
|
|
27 |
|
28 |
|
29 |
def show_search_results(query):
|
30 |
+
query = query.lower()
|
31 |
+
contained_description = data["description"].str.contains(query)
|
32 |
+
contained_project_name = data["project_name"].str.contains(query)
|
33 |
+
df_search = data[contained_description | contained_project_name]
|
34 |
return df_search
|
35 |
|
36 |
|