warbler-cda / fix_theme.py
Bellok
refactor(app): improve code formatting and add background ingestion status display
ec38897
raw
history blame
455 Bytes
#!/usr/bin/env python3
"""Fix the theme issue in app.py"""
with open("app.py", "r", encoding="utf-8") as f:
content = f.read()
old_line = 'with gr.Blocks(title="Warbler CDA - RAG System Demo", theme=gr.themes.Soft()) as demo:'
new_line = 'with gr.Blocks(title="Warbler CDA - RAG System Demo") as demo:'
content = content.replace(old_line, new_line)
with open("app.py", "w", encoding="utf-8") as f:
f.write(content)
print("Fixed theme issue")