Update app.py
Browse files524 unmodified lines5255265275285295305311 unmodified line533534535536537538539524 unmodified lines# Set the file pointer to the beginningbuffer.seek(0)# Add a download button to Streamlitst.download_button(label="Download Chart", data=buffer, file_name=filename, mime='image/png', icon="📊")def download_llm_output(content, filename):# Create a buffer to hold the text data1 unmodified linebuffer.write(content.encode('utf-8'))buffer.seek(0)# Add a download button to Streamlitst.download_button(label="Download LLM Output", data=buffer, file_name=filename, mime='text/plain')def prepare_llm_input(student_metrics_df):# Convert the student metrics DataFrame to a string524 unmodified lines5255265275285295305311 unmodified line533534535536537538539524 unmodified lines# Set the file pointer to the beginningbuffer.seek(0)# Add a download button to Streamlitst.download_button(label="Download Chart", data=buffer, file_name=filename, mime='image/png', icon="📊", use_container_width=True)def download_llm_output(content, filename):# Create a buffer to hold the text data1 unmodified linebuffer.write(content.encode('utf-8'))buffer.seek(0)# Add a download button to Streamlitst.download_button(label="Download LLM Output", data=buffer, file_name=filename, mime='text/plain', icon="✏️", use_container_width=True)def prepare_llm_input(student_metrics_df):# Convert the student metrics DataFrame to a string
app.py+2-2