Spaces:
Sleeping
Sleeping
Update app.py
Browse files101 unmodified lines1021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313324 unmodified lines33733833934034134234318 unmodified lines362363364365366367368101 unmodified lines# ββ Custom CSS ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββcustom_css = """@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');* {font-family: 'Sora', sans-serif !important;}body, .gradio-container {background-color: #0d1117 !important;color: #e2e8f0 !important;}.gradio-container {max-width: 1200px !important;margin: 0 auto !important;}/* Header */#app-header {padding: 2.5rem 0 1.5rem;border-bottom: 1px solid #1e2d3d;margin-bottom: 2rem;}#app-header h1 {font-size: 1.6rem;font-weight: 600;color: #e2e8f0;letter-spacing: -0.02em;margin: 0 0 0.3rem 0;}#app-header p {font-size: 0.875rem;color: #64748b;margin: 0;font-weight: 300;}/* Accent bar */#accent-bar {width: 2.5rem;height: 2px;background: linear-gradient(90deg, #0ea5e9, #38bdf8);margin-bottom: 0.75rem;border-radius: 2px;}/* Section labels */.section-label {font-size: 0.7rem !important;font-weight: 500 !important;text-transform: uppercase !important;letter-spacing: 0.12em !important;color: #475569 !important;margin-bottom: 0.75rem !important;}/* Input panels */.input-panel, .output-panel {background: #111827 !important;border: 1px solid #1e2d3d !important;border-radius: 8px !important;padding: 1.25rem !important;}/* Textbox */textarea, .gr-textbox textarea {background: #0d1117 !important;border: 1px solid #1e2d3d !important;border-radius: 6px !important;color: #cbd5e1 !important;font-size: 0.875rem !important;line-height: 1.7 !important;font-family: 'JetBrains Mono', monospace !important;padding: 0.875rem !important;resize: vertical !important;}textarea:focus {border-color: #0ea5e9 !important;outline: none !important;box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08) !important;}textarea::placeholder {color: #334155 !important;}/* File upload */.gr-file, .upload-button {background: #0d1117 !important;border: 1px dashed #1e2d3d !important;border-radius: 6px !important;color: #64748b !important;}/* Tabs */.tab-nav {border-bottom: 1px solid #1e2d3d !important;margin-bottom: 1rem !important;}.tab-nav button {font-size: 0.8rem !important;font-weight: 500 !important;color: #475569 !important;border: none !important;background: transparent !important;padding: 0.5rem 1rem !important;border-radius: 0 !important;letter-spacing: 0.02em !important;}.tab-nav button.selected {color: #0ea5e9 !important;border-bottom: 2px solid #0ea5e9 !important;}/* Run button */#run-btn {background: #0ea5e9 !important;color: #0d1117 !important;border: none !important;border-radius: 6px !important;font-size: 0.875rem !important;font-weight: 600 !important;padding: 0.7rem 1.75rem !important;letter-spacing: 0.01em !important;transition: background 0.15s ease !important;margin-top: 0.75rem !important;width: 100% !important;}#run-btn:hover {background: #38bdf8 !important;}/* Output markdown */#output-area {background: #0d1117 !important;border: 1px solid #1e2d3d !important;border-radius: 6px !important;padding: 1.25rem !important;min-height: 400px !important;font-size: 0.875rem !important;line-height: 1.8 !important;color: #cbd5e1 !important;}#output-area h1, #output-area h2, #output-area h3 {color: #e2e8f0 !important;font-weight: 600 !important;letter-spacing: -0.01em !important;margin-top: 1.25rem !important;}#output-area strong {color: #0ea5e9 !important;font-weight: 500 !important;}#output-area ul, #output-area ol {padding-left: 1.25rem !important;color: #94a3b8 !important;}#output-area code {background: #1e2d3d !important;border-radius: 3px !important;padding: 0.1em 0.35em !important;font-family: 'JetBrains Mono', monospace !important;font-size: 0.82em !important;color: #38bdf8 !important;}/* Accordion */.gr-accordion {background: #111827 !important;border: 1px solid #1e2d3d !important;border-radius: 6px !important;margin-top: 0.75rem !important;}.gr-accordion .label-wrap {font-size: 0.8rem !important;color: #475569 !important;font-weight: 500 !important;}/* Examples */.gr-examples {margin-top: 1.5rem !important;}.gr-examples table {background: #111827 !important;border: 1px solid #1e2d3d !important;border-radius: 6px !important;}.gr-examples td {color: #64748b !important;font-size: 0.8rem !important;}/* Divider */.divider {border: none !important;border-top: 1px solid #1e2d3d !important;margin: 1.5rem 0 !important;}/* Labels */label, .gr-label {color: #475569 !important;font-size: 0.8rem !important;font-weight: 500 !important;letter-spacing: 0.03em !important;}/* Scrollbar */::-webkit-scrollbar { width: 5px; }::-webkit-scrollbar-track { background: #0d1117; }::-webkit-scrollbar-thumb { background: #1e2d3d; border-radius: 3px; }::-webkit-scrollbar-thumb:hover { background: #0ea5e9; }"""# ββ Gradio UI βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ4 unmodified linesgr.HTML("""<div id="app-header"><div id="accent-bar"></div><h1>Problem Brainstormer</h1><p>Paste a meeting transcript or upload a document to get structured problem analysis and solution ideas.</p></div>18 unmodified linesfile_types=[".pdf"],file_count="single",)gr.HTML('<p style="font-size:0.75rem;color:#334155;margin-top:0.5rem">Text-based PDFs only. Scanned documents are not supported.</p>')run_btn = gr.Button("Analyze and Brainstorm",101 unmodified lines1021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683694 unmodified lines37437537637737837938018 unmodified lines399400401402403404405101 unmodified lines# ββ Custom CSS ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββcustom_css = """@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');* {font-family: 'Inter', sans-serif !important;box-sizing: border-box;}body, .gradio-container {background-color: #ffffff !important;color: #111827 !important;}.gradio-container {max-width: 1280px !important;margin: 0 auto !important;padding: 0 2rem !important;}/* ββ Header ββ */#app-header {padding: 2.75rem 0 2rem;border-bottom: 1px solid #e5e7eb;margin-bottom: 2rem;}#app-header h1 {font-size: 1.5rem;font-weight: 600;color: #111827;letter-spacing: -0.025em;margin: 0 0 0.35rem 0;line-height: 1.3;}#app-header p {font-size: 0.875rem;color: #6b7280;margin: 0;font-weight: 400;line-height: 1.5;}#header-tag {display: inline-block;font-size: 0.7rem;font-weight: 600;letter-spacing: 0.1em;text-transform: uppercase;color: #2563eb;background: #eff6ff;border: 1px solid #bfdbfe;border-radius: 4px;padding: 0.2rem 0.6rem;margin-bottom: 0.85rem;}/* ββ Panels ββ */.input-panel, .output-panel {background: #ffffff !important;border: 1px solid #e5e7eb !important;border-radius: 10px !important;padding: 1.5rem !important;}/* ββ Section label ββ */.section-label {font-size: 0.7rem !important;font-weight: 600 !important;text-transform: uppercase !important;letter-spacing: 0.1em !important;color: #9ca3af !important;margin: 0 0 1rem 0 !important;}/* ββ Textarea ββ */textarea {background: #f9fafb !important;border: 1px solid #e5e7eb !important;border-radius: 8px !important;color: #111827 !important;font-size: 0.875rem !important;line-height: 1.75 !important;padding: 0.875rem 1rem !important;resize: vertical !important;transition: border-color 0.15s, box-shadow 0.15s !important;}textarea:focus {border-color: #2563eb !important;outline: none !important;box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;background: #ffffff !important;}textarea::placeholder {color: #d1d5db !important;}/* ββ File upload ββ */.gr-file {background: #f9fafb !important;border: 1px dashed #d1d5db !important;border-radius: 8px !important;color: #6b7280 !important;}/* ββ Tabs ββ */.tab-nav {border-bottom: 1px solid #e5e7eb !important;margin-bottom: 1rem !important;background: transparent !important;}.tab-nav button {font-size: 0.8rem !important;font-weight: 500 !important;color: #9ca3af !important;border: none !important;background: transparent !important;padding: 0.5rem 1rem 0.6rem !important;border-radius: 0 !important;letter-spacing: 0.01em !important;transition: color 0.15s !important;}.tab-nav button:hover {color: #374151 !important;}.tab-nav button.selected {color: #2563eb !important;border-bottom: 2px solid #2563eb !important;font-weight: 600 !important;}/* ββ Run button ββ */#run-btn {background: #2563eb !important;color: #ffffff !important;border: none !important;border-radius: 8px !important;font-size: 0.875rem !important;font-weight: 600 !important;padding: 0.7rem 1.5rem !important;letter-spacing: 0.01em !important;transition: background 0.15s ease, box-shadow 0.15s ease !important;margin-top: 0.875rem !important;width: 100% !important;cursor: pointer !important;}#run-btn:hover {background: #1d4ed8 !important;box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;}/* ββ Output area ββ */#output-area {background: #f9fafb !important;border: 1px solid #e5e7eb !important;border-radius: 8px !important;padding: 1.25rem 1.5rem !important;min-height: 420px !important;font-size: 0.875rem !important;line-height: 1.8 !important;color: #374151 !important;}#output-area h1, #output-area h2, #output-area h3 {color: #111827 !important;font-weight: 600 !important;letter-spacing: -0.015em !important;margin-top: 1.5rem !important;margin-bottom: 0.5rem !important;}#output-area h2 {font-size: 1rem !important;border-bottom: 1px solid #f3f4f6 !important;padding-bottom: 0.4rem !important;}#output-area strong {color: #111827 !important;font-weight: 600 !important;}#output-area ul, #output-area ol {padding-left: 1.25rem !important;color: #4b5563 !important;margin: 0.4rem 0 !important;}#output-area li {margin-bottom: 0.25rem !important;}#output-area p {color: #4b5563 !important;}#output-area em {color: #9ca3af !important;}/* ββ Accordion ββ */.gr-accordion {background: #f9fafb !important;border: 1px solid #e5e7eb !important;border-radius: 8px !important;margin-top: 0.875rem !important;}.gr-accordion .label-wrap span {font-size: 0.8rem !important;color: #6b7280 !important;font-weight: 500 !important;}/* ββ Labels ββ */label, .gr-label {color: #6b7280 !important;font-size: 0.8rem !important;font-weight: 500 !important;}/* ββ Examples ββ */.gr-examples {margin-top: 1rem !important;}.gr-examples table {background: #ffffff !important;border: 1px solid #e5e7eb !important;border-radius: 8px !important;overflow: hidden !important;}.gr-examples td {color: #6b7280 !important;font-size: 0.8rem !important;padding: 0.6rem 1rem !important;border-bottom: 1px solid #f3f4f6 !important;}.gr-examples tr:hover td {background: #f9fafb !important;cursor: pointer !important;}/* ββ Divider ββ */.divider {border: none !important;border-top: 1px solid #e5e7eb !important;margin: 2rem 0 1.5rem !important;}/* ββ Scrollbar ββ */::-webkit-scrollbar { width: 5px; }::-webkit-scrollbar-track { background: #f9fafb; }::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }::-webkit-scrollbar-thumb:hover { background: #d1d5db; }"""# ββ Gradio UI βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ4 unmodified linesgr.HTML("""<div id="app-header"><div id="header-tag">Intern Tool</div><h1>Problem Brainstormer</h1><p>Paste a meeting transcript or upload a document to get structured problem analysis and solution ideas.</p></div>18 unmodified linesfile_types=[".pdf"],file_count="single",)gr.HTML('<p style="font-size:0.75rem;color:#9ca3af;margin-top:0.5rem">Text-based PDFs only. Scanned documents are not supported.</p>')run_btn = gr.Button("Analyze and Brainstorm",
app.py+153-116