FerrellSyntheticIntelligence commited on
Commit
6edad03
·
1 Parent(s): da10a22

fix: force dependencies and runtime faiss verification

Browse files
Files changed (2) hide show
  1. app.py +12 -5
  2. requirements.txt +0 -5
app.py CHANGED
@@ -1,5 +1,12 @@
1
- import gradio as gr
2
- def hello():
3
- return "Vitalis Core: Infrastructure Verified."
4
- demo = gr.Interface(fn=hello, inputs=[], outputs="text")
5
- demo.launch()
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import subprocess
3
+ try:
4
+ import faiss
5
+ print("FAISS verified.")
6
+ except ImportError:
7
+ print("FAISS missing, installing...")
8
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "faiss-cpu"])
9
+ import faiss
10
+
11
+ from src.core.memory_engine import MemoryEngine
12
+ # Rest of your app code follows here
requirements.txt CHANGED
@@ -1,10 +1,5 @@
1
  torch
2
  sentence-transformers
3
- <<<<<<< Updated upstream
4
- torch
5
- sentence-transformers
6
- =======
7
- >>>>>>> Stashed changes
8
  numpy
9
  transformers
10
  faiss-cpu
 
1
  torch
2
  sentence-transformers
 
 
 
 
 
3
  numpy
4
  transformers
5
  faiss-cpu