Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -362,15 +362,15 @@ def display_python_parts():
|
|
362 |
for part, content in python_parts.items():
|
363 |
with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
|
364 |
if st.button(f"Show Example for {part}", key=f"example_{part}"):
|
365 |
-
example = "Write three
|
366 |
example_placeholders[part] = example
|
367 |
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)
|
368 |
st.code(response, language="python")
|
369 |
if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
|
370 |
-
quiz = "Write three
|
371 |
response = chat_with_model(quiz, part)
|
372 |
st.code(response, language="python")
|
373 |
-
prompt = f"Learn about Writing three
|
374 |
if st.button(f"Explore {part}", key=part):
|
375 |
response = chat_with_model(prompt, part)
|
376 |
response_placeholders[part] = response
|
|
|
362 |
for part, content in python_parts.items():
|
363 |
with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
|
364 |
if st.button(f"Show Example for {part}", key=f"example_{part}"):
|
365 |
+
example = "Write three python examples with mock example inputs as python data structures and real URLs like wikipedia for " + part
|
366 |
example_placeholders[part] = example
|
367 |
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)
|
368 |
st.code(response, language="python")
|
369 |
if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
|
370 |
+
quiz = "Write three python program quiz examples without functions with mock example inputs as python data structures and real URLs like wikipedia for " + part
|
371 |
response = chat_with_model(quiz, part)
|
372 |
st.code(response, language="python")
|
373 |
+
prompt = f"Learn about Writing three python examples that feature a programmatic UI using mock example inputs for {content['details']}"
|
374 |
if st.button(f"Explore {part}", key=part):
|
375 |
response = chat_with_model(prompt, part)
|
376 |
response_placeholders[part] = response
|