Spaces:
Sleeping
Sleeping
Commit ·
c44ee53
1
Parent(s): d3c6788
Initial summarizer app
Browse files- Streamlit app for text and PDF summarization
- Based on classifier app structure
- Supports free models and bring-your-own-key
- Generates methodology report PDFs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Files changed (5)
- README.md+45-8
- app.pyAdded+679
- example_data.csvAdded+21
- logo.pngAdded
- requirements.txtAdded+12
1234567891011121314---title: Survey Summarizeremoji: 🏃colorFrom: indigocolorTo: bluesdk: gradiosdk_version: 6.3.0app_file: app.pypinned: falselicense: gpl-3.0short_description: Research-grade summarization of survey responses, PDFs, and---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---title: CatLLM - Survey Response Summarizeremoji: 🐱colorFrom: yellowcolorTo: yellowsdk: streamlitsdk_version: "1.32.0"app_file: app.pypinned: falselicense: gpl-3.0short_description: Summarize survey responses and PDFs using LLMs---# CatLLM - Survey Response SummarizerA web interface for the [catllm](https://github.com/chrissoria/cat-llm) Python package. Summarize survey responses and PDF documents using various LLM providers.## How to Use1. **Upload Your Data**: Upload a CSV, Excel file, or PDF documents2. **Select Column** (for text): Choose the column containing the text responses to summarize3. **Add Context**: Describe your data and optionally add focus/instructions4. **Choose a Model**: Select your preferred LLM (free models available!)5. **Click Summarize**: View and download results with generated summaries## Features- **Text Summarization**: Summarize survey responses, feedback, or any text data- **PDF Summarization**: Extract and summarize content from PDF documents- **Customizable**: Add focus areas, max length limits, and custom instructions- **Methodology Report**: Download a PDF report documenting your summarization process## Supported Models| Provider | Models ||----------|--------|| **OpenAI** | gpt-4.1, gpt-4o, gpt-4o-mini || **Anthropic** | claude-sonnet-4.5, claude-opus-4, claude-3.5-haiku || **Google** | gemini-2.5-pro, gemini-2.5-flash || **Mistral** | mistral-large-latest || **Free Models** | Qwen3 235B, DeepSeek V3.1, Llama 3.3 70B |## PrivacyYour API key is **never stored**. It is only used for the current summarization request and is not logged or saved.## Related- [CatLLM Survey Classifier](https://huggingface.co/spaces/CatLLM/survey-classifier) - Classify survey responses into categories- [catllm on PyPI](https://pypi.org/project/cat-llm/)- [GitHub Repository](https://github.com/chrissoria/cat-llm)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679"""Streamlit app - CatLLM Survey Response SummarizerBased on the classifier app but focused on text/PDF summarization"""
import streamlit as stimport pandas as pdimport tempfileimport osimport timeimport sysfrom datetime import datetime
# Import catllmtry: import catllm CATLLM_AVAILABLE = Trueexcept ImportError as e: print(f"Warning: Could not import catllm: {e}") CATLLM_AVAILABLE = False
MAX_FILE_SIZE_MB = 100
def count_pdf_pages(pdf_path): """Count the number of pages in a PDF file.""" try: import fitz # PyMuPDF doc = fitz.open(pdf_path) page_count = len(doc) doc.close() return page_count except Exception: return 1 # Default to 1 if can't read
# Free models - display name -> actual API model nameFREE_MODELS_MAP = { "Qwen3 235B": "Qwen/Qwen3-VL-235B-A22B-Instruct:novita", "DeepSeek V3.1": "deepseek-ai/DeepSeek-V3.1:novita", "Llama 3.3 70B": "meta-llama/Llama-3.3-70B-Instruct:groq", "Gemini 2.5 Flash": "gemini-2.5-flash", "GPT-4o Mini": "gpt-4o-mini", "Mistral Medium": "mistral-medium-2505", "Claude 3 Haiku": "claude-3-haiku-20240307", "Grok 4 Fast": "grok-4-fast-non-reasoning",}FREE_MODEL_DISPLAY_NAMES = list(FREE_MODELS_MAP.keys())
# Paid models (user provides their own API key)PAID_MODEL_CHOICES = [ "gpt-4.1", "gpt-4o", "gpt-4o-mini", "claude-sonnet-4-5-20250929", "claude-opus-4-20250514", "claude-3-5-haiku-20241022", "gemini-2.5-pro", "gemini-2.5-flash", "mistral-large-latest",]
# Models routed through HuggingFaceHF_ROUTED_MODELS = [ "Qwen/Qwen3-VL-235B-A22B-Instruct:novita", "deepseek-ai/DeepSeek-V3.1:novita", "meta-llama/Llama-3.3-70B-Instruct:groq",]
def is_free_model(model, model_tier): """Check if using free tier (Space pays for API).""" return model_tier == "Free Models"
def get_model_source(model): """Auto-detect model source.""" model_lower = model.lower() if "gpt" in model_lower: return "openai" elif "claude" in model_lower: return "anthropic" elif "gemini" in model_lower: return "google" elif "mistral" in model_lower and ":novita" not in model_lower: return "mistral" elif any(x in model_lower for x in [":novita", ":groq", "qwen", "llama", "deepseek"]): return "huggingface" elif "sonar" in model_lower: return "perplexity" elif "grok" in model_lower: return "xai" return "huggingface"
def get_api_key(model, model_tier, api_key_input): """Get the appropriate API key based on model and tier.""" if is_free_model(model, model_tier): if model in HF_ROUTED_MODELS: return os.environ.get("HF_API_KEY", ""), "HuggingFace" elif "gpt" in model.lower(): return os.environ.get("OPENAI_API_KEY", ""), "OpenAI" elif "gemini" in model.lower(): return os.environ.get("GOOGLE_API_KEY", ""), "Google" elif "mistral" in model.lower(): return os.environ.get("MISTRAL_API_KEY", ""), "Mistral" elif "claude" in model.lower(): return os.environ.get("ANTHROPIC_API_KEY", ""), "Anthropic" elif "sonar" in model.lower(): return os.environ.get("PERPLEXITY_API_KEY", ""), "Perplexity" elif "grok" in model.lower(): return os.environ.get("XAI_API_KEY", ""), "xAI" else: return os.environ.get("HF_API_KEY", ""), "HuggingFace" else: if api_key_input and api_key_input.strip(): return api_key_input.strip(), "User" return "", "User"
def generate_summarize_code(input_type, description, model, model_source, focus=None, max_length=None, instructions=None, mode=None): """Generate Python code for summarization.""" focus_param = f',\n focus="{focus}"' if focus else '' length_param = f',\n max_length={max_length}' if max_length else '' instructions_param = f',\n instructions="{instructions}"' if instructions else ''
if input_type == "text": return f'''import catllmimport pandas as pd
# Load your datadf = pd.read_csv("your_data.csv")
# Summarize the text columnresult = catllm.summarize( input_data=df["your_column"].tolist(), api_key="YOUR_API_KEY", description="{description}", user_model="{model}", model_source="{model_source}"{focus_param}{length_param}{instructions_param})
# View resultsprint(result)result.to_csv("summarized_results.csv", index=False)''' else: # pdf mode_param = f',\n mode="{mode}"' if mode else '' return f'''import catllm
# Summarize PDF documentsresult = catllm.summarize( input_data="path/to/your/pdfs/", api_key="YOUR_API_KEY", description="{description}", user_model="{model}", model_source="{model_source}"{mode_param}{focus_param}{length_param}{instructions_param})
# View resultsprint(result)result.to_csv("summarized_results.csv", index=False)'''
def generate_methodology_report_pdf(model, column_name, num_rows, model_source, filename, success_rate, result_df=None, processing_time=None, catllm_version=None, python_version=None, input_type="text", description=None, focus=None, max_length=None): """Generate a PDF methodology report for summarization.""" from reportlab.lib.pagesizes import letter from reportlab.lib import colors from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, PageBreak
pdf_file = tempfile.NamedTemporaryFile(mode='wb', suffix='_methodology_report.pdf', delete=False) doc = SimpleDocTemplate(pdf_file.name, pagesize=letter) styles = getSampleStyleSheet()
title_style = ParagraphStyle('Title', parent=styles['Heading1'], fontSize=18, spaceAfter=20) heading_style = ParagraphStyle('Heading', parent=styles['Heading2'], fontSize=14, spaceAfter=10, spaceBefore=15) normal_style = styles['Normal']
story = []
report_title = "CatLLM Summarization Report" story.append(Paragraph(report_title, title_style)) story.append(Paragraph(f"Generated: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}", normal_style)) story.append(Spacer(1, 15))
story.append(Paragraph("About This Report", heading_style)) about_text = """This methodology report documents the automated summarization process. \CatLLM uses LLMs to generate concise summaries of text or PDF documents, providing \consistent and reproducible results.""" story.append(Paragraph(about_text, normal_style)) story.append(Spacer(1, 15))
# Summary section story.append(Paragraph("Summarization Summary", heading_style)) story.append(Spacer(1, 10))
summary_data = [ ["Source File", filename], ["Source Column/Type", column_name], ["Model Used", model], ["Model Source", model_source], ["Items Summarized", str(num_rows)], ["Success Rate", f"{success_rate:.2f}%"], ] if focus: summary_data.append(["Focus", focus]) if max_length: summary_data.append(["Max Length", f"{max_length} words"])
summary_table = Table(summary_data, colWidths=[150, 300]) summary_table.setStyle(TableStyle([ ('BACKGROUND', (0, 0), (0, -1), colors.lightgrey), ('GRID', (0, 0), (-1, -1), 1, colors.black), ('PADDING', (0, 0), (-1, -1), 6), ('FONTSIZE', (0, 0), (-1, -1), 9), ])) story.append(summary_table) story.append(Spacer(1, 15))
if processing_time is not None: story.append(Paragraph("Processing Time", heading_style)) rows_per_min = (num_rows / processing_time) * 60 if processing_time > 0 else 0 avg_time = processing_time / num_rows if num_rows > 0 else 0
time_data = [ ["Total Processing Time", f"{processing_time:.1f} seconds"], ["Average Time per Item", f"{avg_time:.2f} seconds"], ["Processing Rate", f"{rows_per_min:.1f} items/minute"], ] time_table = Table(time_data, colWidths=[180, 270]) time_table.setStyle(TableStyle([ ('BACKGROUND', (0, 0), (0, -1), colors.lightgrey), ('GRID', (0, 0), (-1, -1), 1, colors.black), ('PADDING', (0, 0), (-1, -1), 6), ('FONTSIZE', (0, 0), (-1, -1), 9), ])) story.append(time_table)
story.append(Spacer(1, 15)) story.append(Paragraph("Version Information", heading_style)) version_data = [ ["CatLLM Version", catllm_version or "unknown"], ["Python Version", python_version or "unknown"], ["Timestamp", datetime.now().strftime('%Y-%m-%d %H:%M:%S')], ] version_table = Table(version_data, colWidths=[180, 270]) version_table.setStyle(TableStyle([ ('BACKGROUND', (0, 0), (0, -1), colors.lightgrey), ('GRID', (0, 0), (-1, -1), 1, colors.black), ('PADDING', (0, 0), (-1, -1), 6), ('FONTSIZE', (0, 0), (-1, -1), 9), ])) story.append(version_table)
story.append(Spacer(1, 30)) story.append(Paragraph("Citation", heading_style)) story.append(Paragraph("If you use CatLLM in your research, please cite:", normal_style)) story.append(Spacer(1, 5)) story.append(Paragraph("Soria, C. (2025). CatLLM: A Python package for LLM-based text classification. DOI: 10.5281/zenodo.15532316", normal_style))
doc.build(story) return pdf_file.name
# Page configst.set_page_config( page_title="CatLLM - Research Data Summarizer", page_icon="🐱", layout="wide")
# Initialize session stateif 'results' not in st.session_state: st.session_state.results = Noneif 'survey_data' not in st.session_state: st.session_state.survey_data = Noneif 'pdf_data' not in st.session_state: st.session_state.pdf_data = None
# Logo and titlecol_logo, col_title = st.columns([1, 6])with col_logo: st.image("logo.png", width=100)with col_title: st.title("CatLLM - Research Data Summarizer") st.markdown("Generate concise summaries of survey responses and PDF documents using LLMs.")
# About sectionwith st.expander("About This App"): st.markdown("""**Privacy Notice:** Your data is sent to third-party LLM APIs for summarization. Do not upload sensitive, confidential, or personally identifiable information (PII).
---
**CatLLM** is an open-source Python package for processing text and document data using Large Language Models.
### What It Does- **Summarize Text**: Generate concise summaries of survey responses or text data- **Summarize PDFs**: Extract key information from PDF documents page-by-page- **Focus Summaries**: Guide the model to focus on specific aspects of your data
### Beta Test - We Want Your Feedback!This app is currently in **beta** and **free to use** while CatLLM is under review for publication, made possible by **Bashir Ahmed's generous fellowship support**.
- Found a bug? Have a feature request? Please open an issue on [GitHub](https://github.com/chrissoria/cat-llm)- Reach out directly: [chrissoria@berkeley.edu](mailto:chrissoria@berkeley.edu)
### Links- **PyPI**: [pip install cat-llm](https://pypi.org/project/cat-llm/)- **GitHub**: [github.com/chrissoria/cat-llm](https://github.com/chrissoria/cat-llm)- **Classifier App**: [CatLLM Survey Classifier](https://huggingface.co/spaces/CatLLM/survey-classifier)
### CitationIf you use CatLLM in your research, please cite:```Soria, C. (2025). CatLLM: A Python package for LLM-based text classification. DOI: 10.5281/zenodo.15532316```""")
# Main layoutcol_input, col_output = st.columns([1, 1])
with col_input: # Input type selector input_type_choice = st.radio( "Input Type", options=["Survey Responses", "PDF Documents"], horizontal=True, key="input_type_radio" )
# Initialize variables input_data = None input_type_selected = "text" description = "" original_filename = "data" pdf_mode = "Image (visual documents)"
if input_type_choice == "Survey Responses": input_type_selected = "text"
uploaded_file = st.file_uploader( "Upload Data (CSV or Excel)", type=['csv', 'xlsx', 'xls'], key="survey_file" )
if st.button("Try Example Dataset", key="example_btn"): st.session_state.example_loaded = True
columns = [] df = None if uploaded_file is not None: try: if uploaded_file.name.endswith('.csv'): df = pd.read_csv(uploaded_file) else: df = pd.read_excel(uploaded_file) columns = df.columns.tolist() st.success(f"Loaded {len(df):,} rows") except Exception as e: st.error(f"Error loading file: {e}") elif hasattr(st.session_state, 'example_loaded') and st.session_state.example_loaded: try: df = pd.read_csv("example_data.csv") columns = df.columns.tolist() st.success(f"Loaded example dataset ({len(df)} rows)") except: pass
selected_column = st.selectbox( "Column to Summarize", options=columns if columns else ["Upload a file first"], disabled=not columns, key="survey_column" )
description = selected_column if columns else "" original_filename = uploaded_file.name if uploaded_file else "example_data.csv"
if df is not None and columns and selected_column in columns: input_data = df[selected_column].tolist()
else: # PDF Documents input_type_selected = "pdf"
pdf_files = st.file_uploader( "Upload PDF Document(s)", type=['pdf'], accept_multiple_files=True, key="pdf_files" )
pdf_description = st.text_input( "Document Description", placeholder="e.g., 'research papers', 'interview transcripts'", help="Helps the LLM understand context", key="pdf_desc" )
pdf_mode = st.radio( "Processing Mode", options=["Image (visual documents)", "Text (text-heavy)", "Both (comprehensive)"], key="pdf_mode" )
if pdf_files: input_data = [] pdf_name_map = {} # Map temp paths to original filenames for f in pdf_files: with tempfile.NamedTemporaryFile(delete=False, suffix='.pdf') as tmp: tmp.write(f.read()) input_data.append(tmp.name) pdf_name_map[tmp.name] = f.name.replace('.pdf', '') st.session_state.pdf_name_map = pdf_name_map description = pdf_description or "document" original_filename = "pdf_files" st.success(f"Uploaded {len(pdf_files)} PDF file(s)")
st.markdown("---")
# Summarization options st.markdown("### Summarization Options")
focus = st.text_input( "Focus (optional)", placeholder="e.g., 'main arguments', 'emotional content', 'key findings'", help="Guide the model to focus on specific aspects" )
max_length = st.number_input( "Maximum Summary Length (words, optional)", min_value=0, max_value=1000, value=0, help="Leave at 0 for no limit" ) max_length = max_length if max_length > 0 else None
instructions = st.text_input( "Additional Instructions (optional)", placeholder="e.g., 'use bullet points', 'include quotes'", help="Custom instructions for the summarization" )
st.markdown("---")
# Model selection st.markdown("### Model Selection") model_tier = st.radio( "Model Tier", options=["Free Models", "Bring Your Own Key"], key="model_tier" )
if model_tier == "Free Models": model_display = st.selectbox("Model", options=FREE_MODEL_DISPLAY_NAMES, key="model") model = FREE_MODELS_MAP[model_display] api_key = "" else: model = st.selectbox("Model", options=PAID_MODEL_CHOICES, key="model_paid") api_key = st.text_input("API Key", type="password", key="api_key")
# Summarize button if st.button("Summarize Data", type="primary", use_container_width=True): if input_data is None: st.error("Please upload data first") else: mode = None if input_type_selected == "pdf": mode_mapping = { "Image (visual documents)": "image", "Text (text-heavy)": "text", "Both (comprehensive)": "both" } mode = mode_mapping.get(pdf_mode, "image")
actual_api_key, provider = get_api_key(model, model_tier, api_key) if not actual_api_key: st.error(f"{provider} API key not configured") else: model_source = get_model_source(model) items_list = input_data if isinstance(input_data, list) else [input_data]
# Calculate estimated time num_items = len(items_list) if input_type_selected == "pdf": total_pages = sum(count_pdf_pages(p) for p in items_list) est_seconds = total_pages * 5 else: est_seconds = max(10, num_items * 2)
est_time_str = f"{est_seconds:.0f}s" if est_seconds < 60 else f"{est_seconds/60:.1f}m"
# Progress UI progress_bar = st.progress(0) status_text = st.empty() start_time = time.time()
def progress_callback(current_idx, total, label=None): progress = current_idx / total if total > 0 else 0 progress_bar.progress(min(progress, 1.0))
elapsed = time.time() - start_time if current_idx > 0: avg_time = elapsed / current_idx eta_seconds = avg_time * (total - current_idx) eta_str = f" | ETA: {eta_seconds:.0f}s" if eta_seconds < 60 else f" | ETA: {eta_seconds/60:.1f}m" else: eta_str = ""
label_str = f" ({label})" if label else "" status_text.text(f"Processing item {current_idx+1} of {total}{label_str} ({progress*100:.0f}%){eta_str}")
try: # Build kwargs for summarize summarize_kwargs = { "input_data": items_list, "api_key": actual_api_key, "description": description, "user_model": model, "model_source": model_source, "progress_callback": progress_callback, } if mode: summarize_kwargs["mode"] = mode if focus and focus.strip(): summarize_kwargs["focus"] = focus.strip() if max_length: summarize_kwargs["max_length"] = max_length if instructions and instructions.strip(): summarize_kwargs["instructions"] = instructions.strip()
result_df = catllm.summarize(**summarize_kwargs)
processing_time = time.time() - start_time total_items = len(result_df) progress_bar.progress(1.0) status_text.text(f"Completed {total_items} items in {processing_time:.1f}s")
# Replace temp paths with original filenames for PDF input if input_type_selected == "pdf" and 'pdf_path' in result_df.columns: pdf_name_map = st.session_state.get('pdf_name_map', {}) def replace_temp_path(val): if pd.isna(val): return val val_str = str(val) for temp_path, orig_name in pdf_name_map.items(): if temp_path in val_str: return val_str.replace(temp_path, orig_name + '.pdf') return val_str result_df['pdf_path'] = result_df['pdf_path'].apply(replace_temp_path)
# Save CSV with tempfile.NamedTemporaryFile(mode='w', suffix='_summarized.csv', delete=False) as f: result_df.to_csv(f.name, index=False) csv_path = f.name
# Calculate success rate if 'processing_status' in result_df.columns: success_count = (result_df['processing_status'] == 'success').sum() success_rate = (success_count / len(result_df)) * 100 else: success_rate = 100.0
# Get version info try: catllm_version = catllm.__version__ except AttributeError: catllm_version = "unknown" python_version = sys.version.split()[0]
# Generate methodology report pdf_path = generate_methodology_report_pdf( model=model, column_name=description, num_rows=total_items, model_source=model_source, filename=original_filename, success_rate=success_rate, result_df=result_df, processing_time=processing_time, catllm_version=catllm_version, python_version=python_version, input_type=input_type_selected, description=description, focus=focus if focus else None, max_length=max_length )
# Generate code code = generate_summarize_code( input_type_selected, description, model, model_source, focus=focus if focus else None, max_length=max_length, instructions=instructions if instructions else None, mode=mode )
st.session_state.results = { 'df': result_df, 'csv_path': csv_path, 'pdf_path': pdf_path, 'code': code, 'status': f"Summarized {total_items} items in {processing_time:.1f}s", } st.success(f"Summarized {total_items} items in {processing_time:.1f}s") st.rerun()
except Exception as e: st.error(f"Error: {str(e)}")
with col_output: st.markdown("### Results")
if st.session_state.results: results = st.session_state.results
# Placeholder for future chart st.info("Summary visualization coming soon!")
# Results dataframe display_df = results['df'].copy() cols_to_hide = ['model_response', 'json', 'raw_response', 'raw_json'] display_df = display_df.drop(columns=[c for c in cols_to_hide if c in display_df.columns]) st.dataframe(display_df, use_container_width=True)
# Downloads col_dl1, col_dl2 = st.columns(2) with col_dl1: with open(results['csv_path'], 'rb') as f: st.download_button( "Download Results (CSV)", data=f, file_name="summarized_results.csv", mime="text/csv" ) with col_dl2: with open(results['pdf_path'], 'rb') as f: st.download_button( "Download Methodology Report (PDF)", data=f, file_name="methodology_report.pdf", mime="application/pdf" )
# Code with st.expander("See the Code"): st.code(results['code'], language='python') else: st.info("Upload data and click 'Summarize Data' to see results here.")
# Bottom buttonscol_reset, col_code = st.columns(2)with col_reset: if st.button("Reset", type="secondary", use_container_width=True): st.session_state.results = None if hasattr(st.session_state, 'example_loaded'): del st.session_state.example_loaded st.rerun()
with col_code: if st.session_state.results: if st.button("See in Code", use_container_width=True): st.session_state.show_code_modal = True
# Code modal/dialogif st.session_state.get('show_code_modal') and st.session_state.results: st.markdown("---") st.markdown("### Reproducibility Code") st.markdown("Use this code to reproduce the summarization with the CatLLM Python package:") st.code(st.session_state.results['code'], language='python') if st.button("Close"): st.session_state.show_code_modal = False st.rerun()123456789101112131415161718192021Response
The weather was just too hot where I lived
I could no longer afford the rent in my old neighborhood
My company offered me a promotion but it required relocating
I wanted to be closer to my aging parents
The schools in my area were not good enough for my kids
I got accepted into graduate school across the country
My apartment had a terrible mold problem that the landlord refused to fix
I went through a divorce and needed a fresh start
The crime rate in my neighborhood kept getting worse
I was tired of the long commute to work every day
I fell in love with someone who lived in another city
The cost of living was much lower in the new area
I needed a bigger house because we were expecting twins
My doctor recommended a drier climate for my health
I got laid off and found a new job in a different state
I wanted to live somewhere with better outdoor recreation
My lease ended and my landlord decided to sell the building
I retired and wanted to move somewhere warmer
The noise from the construction next door was unbearable
I always dreamed of living near the ocean123456789101112streamlit>=1.32.0cat-llm[pdf]>=0.1.15mistralaipydantic==2.10.6huggingface_hub<0.27.0pandasopenpyxlrequestsregexreportlabmatplotlibPillowREADME.md+45-8
app.pyAdded+679
example_data.csvAdded+21
logo.pngAdded

requirements.txtAdded+12