Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -311,12 +311,12 @@ def display_python_parts():
|
|
311 |
for part, content in python_parts.items():
|
312 |
with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
|
313 |
if st.button(f"Show Example for {part}", key=f"example_{part}"):
|
314 |
-
example = "Python script examples without functions with mock example inputs for " + part
|
315 |
example_placeholders[part] = example
|
316 |
-
response = chat_with_model('Create detailed python script code example scripts
|
317 |
st.code(response, language="python")
|
318 |
if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
|
319 |
-
quiz = "Python script quiz examples without functions with mock example inputs for " + part
|
320 |
response = chat_with_model(quiz, part)
|
321 |
st.code(response, language="python")
|
322 |
prompt = f"Learn about advanced python script coding examples using mock example inputs for {content['details']}"
|
|
|
311 |
for part, content in python_parts.items():
|
312 |
with st.expander(f"{content['emoji']} {part} - {content['details']}", expanded=False):
|
313 |
if st.button(f"Show Example for {part}", key=f"example_{part}"):
|
314 |
+
example = "Python script examples without functions with mock example inputs as python data structures and real URLs like wikipedia for " + part
|
315 |
example_placeholders[part] = example
|
316 |
+
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)
|
317 |
st.code(response, language="python")
|
318 |
if st.button(f"Take Quiz on {part}", key=f"quiz_{part}"):
|
319 |
+
quiz = "Python script quiz examples without functions with mock example inputs as python data structures and real URLs like wikipedia for " + part
|
320 |
response = chat_with_model(quiz, part)
|
321 |
st.code(response, language="python")
|
322 |
prompt = f"Learn about advanced python script coding examples using mock example inputs for {content['details']}"
|