Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ with col1:
|
|
| 52 |
try:
|
| 53 |
output = interpreter.run_code(code_input)
|
| 54 |
st.subheader("✨ Code Output ✨")
|
| 55 |
-
st.
|
| 56 |
except Exception as e:
|
| 57 |
st.error(f"Error: {e}")
|
| 58 |
logger.error(f"Code execution error: {e}")
|
|
@@ -73,7 +73,7 @@ with col3:
|
|
| 73 |
if st.button("Corrected Code"):
|
| 74 |
logger.info("User requested code correction.")
|
| 75 |
corrected_code = get_correction_and_comments(code_input)
|
| 76 |
-
gemini_output.
|
| 77 |
|
| 78 |
# Feedback form (outside of the columns, after all content)
|
| 79 |
st.subheader("Feedback")
|
|
|
|
| 52 |
try:
|
| 53 |
output = interpreter.run_code(code_input)
|
| 54 |
st.subheader("✨ Code Output ✨")
|
| 55 |
+
st.text_area("Execution Output", output, height=600, max_chars=None)
|
| 56 |
except Exception as e:
|
| 57 |
st.error(f"Error: {e}")
|
| 58 |
logger.error(f"Code execution error: {e}")
|
|
|
|
| 73 |
if st.button("Corrected Code"):
|
| 74 |
logger.info("User requested code correction.")
|
| 75 |
corrected_code = get_correction_and_comments(code_input)
|
| 76 |
+
gemini_output.code(corrected_code, language="python")
|
| 77 |
|
| 78 |
# Feedback form (outside of the columns, after all content)
|
| 79 |
st.subheader("Feedback")
|