# app.py from agents.raaf import chat_interface if __name__ == "__main__": import pathlib from agents.raaf import chat import gradio as gr # Load your CSS as a string css_str = (pathlib.Path(__file__).parent / "style.css").read_text() # Inject CSS when you build the ChatInterface chat_interface = gr.ChatInterface( fn=chat, type="messages", css=css_str, # ← here, not in launch() ) if __name__ == "__main__": chat_interface.launch()