Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,6 @@ st.set_page_config(
|
|
| 29 |
}
|
| 30 |
)
|
| 31 |
|
| 32 |
-
|
| 33 |
# Initialize session state variables
|
| 34 |
if 'selected_file' not in st.session_state:
|
| 35 |
st.session_state.selected_file = None
|
|
@@ -38,8 +37,6 @@ if 'view_mode' not in st.session_state:
|
|
| 38 |
if 'files' not in st.session_state:
|
| 39 |
st.session_state.files = []
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
AITopicsToInnovate1="""
|
| 44 |
1. Major AI Industry Players ๐
|
| 45 |
1. Research Leaders ๐ฏ
|
|
@@ -505,16 +502,15 @@ def SpeechSynthesis(result):
|
|
| 505 |
'''
|
| 506 |
components.html(documentHTML5, width=1280, height=300)
|
| 507 |
|
| 508 |
-
|
| 509 |
-
|
| 510 |
def display_terms_with_links(terms):
|
| 511 |
"""Display terms with various search links."""
|
| 512 |
search_urls = {
|
| 513 |
-
"
|
| 514 |
-
"
|
| 515 |
-
"
|
| 516 |
-
"
|
| 517 |
-
"
|
|
|
|
| 518 |
}
|
| 519 |
for term in terms:
|
| 520 |
links_md = ' '.join([f"[{emoji}]({url(term)})" for emoji, url in search_urls.items()])
|
|
|
|
| 29 |
}
|
| 30 |
)
|
| 31 |
|
|
|
|
| 32 |
# Initialize session state variables
|
| 33 |
if 'selected_file' not in st.session_state:
|
| 34 |
st.session_state.selected_file = None
|
|
|
|
| 37 |
if 'files' not in st.session_state:
|
| 38 |
st.session_state.files = []
|
| 39 |
|
|
|
|
|
|
|
| 40 |
AITopicsToInnovate1="""
|
| 41 |
1. Major AI Industry Players ๐
|
| 42 |
1. Research Leaders ๐ฏ
|
|
|
|
| 502 |
'''
|
| 503 |
components.html(documentHTML5, width=1280, height=300)
|
| 504 |
|
|
|
|
|
|
|
| 505 |
def display_terms_with_links(terms):
|
| 506 |
"""Display terms with various search links."""
|
| 507 |
search_urls = {
|
| 508 |
+
"๐๐ArXiv": lambda k: f"/?q={quote(k)}", # Academic/paper theme
|
| 509 |
+
"๐ฎ<sup>Google</sup>": lambda k: f"https://www.google.com/search?q={quote(k)}", # Crystal ball for search
|
| 510 |
+
"๐บ<sup>Youtube</sup>": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}", # TV for videos
|
| 511 |
+
"๐ญ<sup>Bing</sup>": lambda k: f"https://www.bing.com/search?q={quote(k)}", # Telescope for search
|
| 512 |
+
"๐ก<sup>Truth</sup>": lambda k: f"https://truthsocial.com/search?q={quote(k)}", # Light bulb for insight
|
| 513 |
+
"๐ฑX": lambda k: f"https://twitter.com/search?q={quote(k)}", # Phone for social media
|
| 514 |
}
|
| 515 |
for term in terms:
|
| 516 |
links_md = ' '.join([f"[{emoji}]({url(term)})" for emoji, url in search_urls.items()])
|