valiant21 commited on
Commit
8084291
1 Parent(s): 21375d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.write(output)
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.text_area("corrected_code",corrected_code, height=400)
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")