Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ ROCKIT Vision Intelligence β Hugging Face Space
|
|
| 7 |
GPU-accelerated multimodal search engine.
|
| 8 |
- Embedding: Qwen3-VL-Embedding (GPU) / CLIP (CPU)
|
| 9 |
- Search: CAGRA (hipVS) -> PyTorch -> NumPy
|
| 10 |
-
- UI: Premium Gradio Demo (Gradio >=
|
| 11 |
"""
|
| 12 |
|
| 13 |
import logging
|
|
@@ -146,16 +146,16 @@ def handle_search(query, mode, top_k, project):
|
|
| 146 |
def handle_create_project(name):
|
| 147 |
"""Create a new named project workspace."""
|
| 148 |
if not name or not name.strip():
|
| 149 |
-
return "Enter a project name.", gr.
|
| 150 |
name = name.strip().lower().replace(" ", "-")
|
| 151 |
from config import get_project_dir
|
| 152 |
get_project_dir(name)
|
| 153 |
-
return f"Project '{name}' created.", gr.
|
| 154 |
|
| 155 |
|
| 156 |
def refresh_projects():
|
| 157 |
"""Return updated dropdown choices."""
|
| 158 |
-
return gr.
|
| 159 |
|
| 160 |
# ββ CSS βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 161 |
|
|
|
|
| 7 |
GPU-accelerated multimodal search engine.
|
| 8 |
- Embedding: Qwen3-VL-Embedding (GPU) / CLIP (CPU)
|
| 9 |
- Search: CAGRA (hipVS) -> PyTorch -> NumPy
|
| 10 |
+
- UI: Premium Gradio Demo (Gradio >= 5.7)
|
| 11 |
"""
|
| 12 |
|
| 13 |
import logging
|
|
|
|
| 146 |
def handle_create_project(name):
|
| 147 |
"""Create a new named project workspace."""
|
| 148 |
if not name or not name.strip():
|
| 149 |
+
return "Enter a project name.", gr.skip()
|
| 150 |
name = name.strip().lower().replace(" ", "-")
|
| 151 |
from config import get_project_dir
|
| 152 |
get_project_dir(name)
|
| 153 |
+
return f"Project '{name}' created.", gr.Dropdown(choices=get_projects_list(), value=name)
|
| 154 |
|
| 155 |
|
| 156 |
def refresh_projects():
|
| 157 |
"""Return updated dropdown choices."""
|
| 158 |
+
return gr.Dropdown(choices=get_projects_list())
|
| 159 |
|
| 160 |
# ββ CSS βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 161 |
|