Spaces:
Running
on
Zero
Running
on
Zero
| #!/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") | |