Spaces:
Running
Running
Commit ·
f4a7794
1
Parent(s): 6ba44f9
command fix
Browse files
app.py
CHANGED
|
@@ -76,8 +76,13 @@ def run_space_interface():
|
|
| 76 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 77 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
| 83 |
|
|
|
|
|
|
|
|
|
| 76 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 77 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
+
# Force initialize the instructions/embeddings before anything else
|
| 80 |
+
print("Initializing EDA System...")
|
| 81 |
+
try:
|
| 82 |
+
embed_analyze_instructions()
|
| 83 |
+
print("Embeddings loaded successfully.")
|
| 84 |
+
except Exception as e:
|
| 85 |
+
print(f"Embedding Error: {e}")
|
| 86 |
|
| 87 |
+
# Start the interface
|
| 88 |
+
run_space_interface()
|