awacke1 commited on
Commit
6d774f2
·
1 Parent(s): ea3f500

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -305,15 +305,15 @@ def display_python_parts():
305
  for part, content in python_parts.items():
306
  with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
307
  if st.button(f"Show Example for {part}", key=f"example_{part}"):
308
- example = "Write a markdown outline with rhyming, labels, names and emojis." + part
309
  example_placeholders[part] = example
310
- response = chat_with_model('Create detailed python script code example scripts with input data as python data structures and real URLs like wikipedia without functions for:' + example_placeholders[part], part)
311
  st.code(response, language="python")
312
  if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
313
- quiz = "Write three python program quiz examples without functions with mock example inputs as python data structures and real URLs like wikipedia for " + part
314
  response = chat_with_model(quiz, part)
315
  st.code(response, language="python")
316
- prompt = f"Learn about Writing three python examples that feature a programmatic UI using mock example inputs for {content['details']}"
317
  if st.button(f"Explore {part}", key=part):
318
  response = chat_with_model(prompt, part)
319
  response_placeholders[part] = response
 
305
  for part, content in python_parts.items():
306
  with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
307
  if st.button(f"Show Example for {part}", key=f"example_{part}"):
308
+ example = "Write a markdown outline with rhyming, labels, names and emojis for " + part
309
  example_placeholders[part] = example
310
+ response = chat_with_model(example_placeholders[part], part)
311
  st.code(response, language="python")
312
  if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
313
+ quiz = "Write three quiz examples withou " + part
314
  response = chat_with_model(quiz, part)
315
  st.code(response, language="python")
316
+ prompt = f"{content['details']}"
317
  if st.button(f"Explore {part}", key=part):
318
  response = chat_with_model(prompt, part)
319
  response_placeholders[part] = response