Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -172,11 +172,19 @@ def display_buttons_with_scores():
|
|
172 |
for term in terms:
|
173 |
key = generate_key(term, header, terms.index(term))
|
174 |
score = load_score(key)
|
175 |
-
if st.button(f"{term} {score}🚀", key=key):
|
|
|
|
|
|
|
|
|
176 |
update_score(key)
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
|
|
|
|
|
|
180 |
def fetch_wikipedia_summary(keyword):
|
181 |
# Placeholder function for fetching Wikipedia summaries
|
182 |
# In a real app, you might use requests to fetch from the Wikipedia API
|
|
|
172 |
for term in terms:
|
173 |
key = generate_key(term, header, terms.index(term))
|
174 |
score = load_score(key)
|
175 |
+
#if st.button(f"{term} {score}🚀", key=key):
|
176 |
+
# update_score(key)
|
177 |
+
# search_glossary('Create a three level markdown outline with 3 subpoints each where each line defines and writes out the core technology descriptions with appropriate emojis for the glossary term: ' + term)
|
178 |
+
# st.experimental_rerun()
|
179 |
+
if st.button(f"{term} {score}", key=key):
|
180 |
update_score(key)
|
181 |
+
# Create a dynamic query incorporating emojis and formatting for clarity
|
182 |
+
query_prefix = f"{key} **{term}:**"
|
183 |
+
# -----------------------------------------------------------------
|
184 |
+
# query_body = f"Create a detailed outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
|
185 |
+
query_body = f"Create a streamlit python app.py that produces a detailed markdown outline including appropriate emojis for functions and a CSV dataset user interface with an outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
|
186 |
+
response = search_glossary(query_prefix + query_body)
|
187 |
+
|
188 |
def fetch_wikipedia_summary(keyword):
|
189 |
# Placeholder function for fetching Wikipedia summaries
|
190 |
# In a real app, you might use requests to fetch from the Wikipedia API
|