Update app.py
Browse filesRemoved redundant function that is in private agent
app.py
CHANGED
|
@@ -37,12 +37,6 @@ except Exception as e:
|
|
| 37 |
# Keep a lightweight global cache so we don’t reload embeddings on every click
|
| 38 |
_VECTORSTORE_PATH = None
|
| 39 |
|
| 40 |
-
def get_vectorstore_path() -> Path:
|
| 41 |
-
global _VECTORSTORE_PATH
|
| 42 |
-
if _VECTORSTORE_PATH is None:
|
| 43 |
-
_VECTORSTORE_PATH = ensure_index_downloaded()
|
| 44 |
-
return _VECTORSTORE_PATH
|
| 45 |
-
|
| 46 |
# --- Gradio UI setup below ---
|
| 47 |
with gr.Blocks(title="DeepV for RTL (Model-Agnostic)") as demo:
|
| 48 |
gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)")
|
|
|
|
| 37 |
# Keep a lightweight global cache so we don’t reload embeddings on every click
|
| 38 |
_VECTORSTORE_PATH = None
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
# --- Gradio UI setup below ---
|
| 41 |
with gr.Blocks(title="DeepV for RTL (Model-Agnostic)") as demo:
|
| 42 |
gr.Markdown("## DeepV for RTL Code Generation — Model-Agnostic (Bring Your Own API Key)")
|