Spaces:
Sleeping
Sleeping
Download app.py from marvit0/raaf-alpha: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/marvit0/raaf-alpha/resolve/main/app.py
- Command line
-
hf download hf://spaces/marvit0/raaf-alpha/app.py
-
curl -L -o app.py https://huggingface.co/spaces/marvit0/raaf-alpha/resolve/main/app.py
519 Bytes
| # 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() |