Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from urllib.parse import quote # Ensure this import is included
|
|
| 6 |
|
| 7 |
# Set page configuration with a title and favicon
|
| 8 |
st.set_page_config(
|
| 9 |
-
page_title="
|
| 10 |
page_icon="🌠",
|
| 11 |
layout="wide",
|
| 12 |
initial_sidebar_state="expanded",
|
|
@@ -17,16 +17,15 @@ st.set_page_config(
|
|
| 17 |
}
|
| 18 |
)
|
| 19 |
|
| 20 |
-
PromptPrefix = 'Create a markdown outline and table with appropriate emojis for word game rules
|
| 21 |
|
| 22 |
-
st.markdown('''###
|
| 23 |
- **Unlock the Power of Words with Mixable Word Game AI:** Transform your vocabulary with an AI that brings words to life.
|
| 24 |
- **Capabilities:** Generates comprehensive glossaries and thrilling challenges.
|
| 25 |
- **Experience:** Your key to becoming a word wizard, enhancing your language skills.
|
| 26 |
- **Query Parameter Usage:** Enter a vocabulary term in the URL query, like `?q=Palindrome` or `?query=Anagram`, to explore new word game challenges.''')
|
| 27 |
|
| 28 |
|
| 29 |
-
|
| 30 |
# -----------------------------------------------------------------Art Card Sidebar:
|
| 31 |
import base64
|
| 32 |
import requests
|
|
@@ -330,7 +329,6 @@ def create_search_url_ai(keyword):
|
|
| 330 |
return base_url + keyword.replace(' ', '+')
|
| 331 |
|
| 332 |
def display_images_and_wikipedia_summaries():
|
| 333 |
-
st.title('Gallery with Related Stories')
|
| 334 |
image_files = [f for f in os.listdir('.') if f.endswith('.png')]
|
| 335 |
if not image_files:
|
| 336 |
st.write("No PNG images found in the current directory.")
|
|
|
|
| 6 |
|
| 7 |
# Set page configuration with a title and favicon
|
| 8 |
st.set_page_config(
|
| 9 |
+
page_title="📖✨🔍WordGameAI",
|
| 10 |
page_icon="🌠",
|
| 11 |
layout="wide",
|
| 12 |
initial_sidebar_state="expanded",
|
|
|
|
| 17 |
}
|
| 18 |
)
|
| 19 |
|
| 20 |
+
PromptPrefix = 'Create a markdown outline and table with appropriate emojis for word game rules defining the method steps of play for topic of '
|
| 21 |
|
| 22 |
+
st.markdown('''### WordGameAI 📖✨🔍
|
| 23 |
- **Unlock the Power of Words with Mixable Word Game AI:** Transform your vocabulary with an AI that brings words to life.
|
| 24 |
- **Capabilities:** Generates comprehensive glossaries and thrilling challenges.
|
| 25 |
- **Experience:** Your key to becoming a word wizard, enhancing your language skills.
|
| 26 |
- **Query Parameter Usage:** Enter a vocabulary term in the URL query, like `?q=Palindrome` or `?query=Anagram`, to explore new word game challenges.''')
|
| 27 |
|
| 28 |
|
|
|
|
| 29 |
# -----------------------------------------------------------------Art Card Sidebar:
|
| 30 |
import base64
|
| 31 |
import requests
|
|
|
|
| 329 |
return base_url + keyword.replace(' ', '+')
|
| 330 |
|
| 331 |
def display_images_and_wikipedia_summaries():
|
|
|
|
| 332 |
image_files = [f for f in os.listdir('.') if f.endswith('.png')]
|
| 333 |
if not image_files:
|
| 334 |
st.write("No PNG images found in the current directory.")
|