Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -223,7 +223,7 @@ if st.button("Generate Code"):
|
|
223 |
with st.spinner("Generating Python Code..."):
|
224 |
try:
|
225 |
# Correct function name here
|
226 |
-
generated_code =
|
227 |
# Display the generated code
|
228 |
st.subheader("Generated Python Code")
|
229 |
st.code(generated_code, language='python')
|
|
|
223 |
with st.spinner("Generating Python Code..."):
|
224 |
try:
|
225 |
# Correct function name here
|
226 |
+
generated_code = generate_code(latex_expression=st.session_state.latex_expr)
|
227 |
# Display the generated code
|
228 |
st.subheader("Generated Python Code")
|
229 |
st.code(generated_code, language='python')
|