Spaces:
Running
Running
Download app.py from cacheaitechnologies/cacheai: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/cacheaitechnologies/cacheai/resolve/main/app.py
- Command line
-
hf download hf://spaces/cacheaitechnologies/cacheai/app.py
-
curl -L -o app.py https://huggingface.co/spaces/cacheaitechnologies/cacheai/resolve/main/app.py
1.32 kB
| import gradio as gr | |
| # Cache AI - Hugging Face Space | |
| # System font stack for natural appearance across platforms | |
| # macOS: SF Pro, Windows: Segoe UI, Linux: Noto Sans | |
| css = """ | |
| * { | |
| font-family: -apple-system, BlinkMacSystemFont, | |
| "Segoe UI", "Helvetica Neue", | |
| Arial, "Noto Sans", sans-serif !important; | |
| } | |
| /* Preserve monospace for code */ | |
| code, pre, kbd, samp { | |
| font-family: Monaco, 'Courier New', Courier, monospace !important; | |
| } | |
| /* CacheAI brand colors */ | |
| h1, h2, h3, h4, h5, h6, a { | |
| color: #1F3E97 !important; | |
| } | |
| """ | |
| with gr.Blocks( | |
| title="Cache AI", | |
| theme=gr.themes.Soft(), | |
| css=css | |
| ) as app: | |
| gr.Markdown("# Cache AI") | |
| gr.Markdown(""" | |
| **Cache AI** provides: | |
| - A Python API (available on PyPI) | |
| - A Web API (OpenAI-compatible) | |
| Due to per-user API key issuance, this Space focuses on explaining behavior and usage, | |
| not full production execution. | |
| """) | |
| gr.Markdown("## Coming Soon") | |
| gr.Markdown("Demo and documentation will be added shortly.") | |
| gr.Markdown("## Links") | |
| gr.Markdown(""" | |
| - [PyPI](https://pypi.org/project/cacheai/) | |
| - [GitHub](https://github.com/cacheaitechnologies/cacheai) | |
| - [Website](https://www.cacheaitechnologies.com/) | |
| """) | |
| if __name__ == "__main__": | |
| app.launch() | |