shincacheai commited on
Commit
aad860c
·
1 Parent(s): df4b935

Initial commit: Add basic app.py and README

Browse files
Files changed (2) hide show
  1. README.md +5 -5
  2. app.py +51 -1
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
- title: Cacheai
3
- emoji: 🏃
4
- colorFrom: red
5
- colorTo: green
6
  sdk: gradio
7
  sdk_version: 6.2.0
8
  app_file: app.py
9
  pinned: false
10
- short_description: Cache AI
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Cache AI
3
+ emoji: ⚡
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 6.2.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: "Semantic caching for LLMs: 90% cheaper, 10× faster"
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1 +1,51 @@
1
- # Cache AI
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Cache AI - Hugging Face Space
4
+
5
+ # System font stack for natural appearance across platforms
6
+ # macOS: SF Pro, Windows: Segoe UI, Linux: Noto Sans
7
+ css = """
8
+ * {
9
+ font-family: -apple-system, BlinkMacSystemFont,
10
+ "Segoe UI", "Helvetica Neue",
11
+ Arial, "Noto Sans", sans-serif !important;
12
+ }
13
+
14
+ /* Preserve monospace for code */
15
+ code, pre, kbd, samp {
16
+ font-family: Monaco, 'Courier New', Courier, monospace !important;
17
+ }
18
+
19
+ /* CacheAI brand colors */
20
+ h1, h2, h3, h4, h5, h6, a {
21
+ color: #1F3E97 !important;
22
+ }
23
+ """
24
+
25
+ with gr.Blocks(
26
+ title="Cache AI",
27
+ theme=gr.themes.Soft(),
28
+ css=css
29
+ ) as app:
30
+ gr.Markdown("# Cache AI")
31
+ gr.Markdown("""
32
+ **Cache AI** provides:
33
+ - A Python API (available on PyPI)
34
+ - A Web API (OpenAI-compatible)
35
+
36
+ Due to per-user API key issuance, this Space focuses on explaining behavior and usage,
37
+ not full production execution.
38
+ """)
39
+
40
+ gr.Markdown("## Coming Soon")
41
+ gr.Markdown("Demo and documentation will be added shortly.")
42
+
43
+ gr.Markdown("## Links")
44
+ gr.Markdown("""
45
+ - [PyPI](https://pypi.org/project/cacheai/)
46
+ - [GitHub](https://github.com/cacheaitechnologies/cacheai)
47
+ - [Website](https://www.cacheaitechnologies.com/)
48
+ """)
49
+
50
+ if __name__ == "__main__":
51
+ app.launch()