ProfessorLeVesseur commited on
Commit
ad18331
·
verified ·
1 Parent(s): 7574679

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -525,7 +525,7 @@ def download_chart(fig, filename):
525
  # Set the file pointer to the beginning
526
  buffer.seek(0)
527
  # Add a download button to Streamlit
528
- st.download_button(label="Download Chart", data=buffer, file_name=filename, mime='image/png', icon="📊")
529
 
530
  def download_llm_output(content, filename):
531
  # Create a buffer to hold the text data
@@ -533,7 +533,7 @@ def download_llm_output(content, filename):
533
  buffer.write(content.encode('utf-8'))
534
  buffer.seek(0)
535
  # Add a download button to Streamlit
536
- st.download_button(label="Download LLM Output", data=buffer, file_name=filename, mime='text/plain')
537
 
538
  def prepare_llm_input(student_metrics_df):
539
  # Convert the student metrics DataFrame to a string
 
525
  # Set the file pointer to the beginning
526
  buffer.seek(0)
527
  # Add a download button to Streamlit
528
+ st.download_button(label="Download Chart", data=buffer, file_name=filename, mime='image/png', icon="📊", use_container_width=True)
529
 
530
  def download_llm_output(content, filename):
531
  # Create a buffer to hold the text data
 
533
  buffer.write(content.encode('utf-8'))
534
  buffer.seek(0)
535
  # Add a download button to Streamlit
536
+ st.download_button(label="Download LLM Output", data=buffer, file_name=filename, mime='text/plain', icon="✏️", use_container_width=True)
537
 
538
  def prepare_llm_input(student_metrics_df):
539
  # Convert the student metrics DataFrame to a string