Commit ·
08550c9
1
Parent(s): 82ca097
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,12 @@ st.set_page_config(
|
|
| 11 |
def search_chat_noir(key, search_query):
|
| 12 |
return search(api_key=key, query=search_query)
|
| 13 |
|
| 14 |
-
def
|
| 15 |
-
return
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
cola, colb, colc = st.columns([5,4,5])
|
| 19 |
with colb:
|
|
|
|
| 11 |
def search_chat_noir(key, search_query):
|
| 12 |
return search(api_key=key, query=search_query)
|
| 13 |
|
| 14 |
+
def result_html(result):
|
| 15 |
+
return (
|
| 16 |
+
f"<p style=\"font-family:sans-serif; color:Blue; font-size: 42px;\">{result.title.html}</p><br>"
|
| 17 |
+
f"<a href=\"{result.target_uri}\" style=\"font-family:sans-serif; color:Blue; font-size: 42px;\">{result.title.html}</a>:<br>"
|
| 18 |
+
f"{result.snippet.html}"
|
| 19 |
+
)
|
| 20 |
|
| 21 |
cola, colb, colc = st.columns([5,4,5])
|
| 22 |
with colb:
|