awacke1 commited on
Commit
f50ae47
·
verified ·
1 Parent(s): c572d3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -43,6 +43,10 @@ st.set_page_config(
43
  'About': "Body Map AI By Aaron Wacker - https://huggingface.co/awacke1"
44
  }
45
  )
 
 
 
 
46
  # -----------------------------------------------------------------Art Card Sidebar:
47
  import base64
48
  import requests
@@ -204,7 +208,12 @@ def load_score(key):
204
 
205
 
206
  def search_glossary(query):
 
 
 
 
207
 
 
208
  st.write('## ' + query)
209
 
210
  all=""
 
43
  'About': "Body Map AI By Aaron Wacker - https://huggingface.co/awacke1"
44
  }
45
  )
46
+
47
+ PromptPrefix = 'Create a markdown outline and table with appropriate emojis for body map which define the definition parts, function, conditions of the topic of '
48
+
49
+
50
  # -----------------------------------------------------------------Art Card Sidebar:
51
  import base64
52
  import requests
 
208
 
209
 
210
  def search_glossary(query):
211
+ for category, terms in body_map_data.items():
212
+ if query.lower() in (term.lower() for term in terms):
213
+ st.markdown(f"#### {category}")
214
+ st.write(f"- {query}")
215
 
216
+ query = PromptPrefix + query # Add prompt preface for method step task behavior
217
  st.write('## ' + query)
218
 
219
  all=""