ProfessionalMario commited on
Commit
f4a7794
·
1 Parent(s): 6ba44f9

command fix

Browse files
Files changed (1) hide show
  1. app.py +9 -4
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
- if "SPACE_ID" in os.environ:
80
- run_space_interface()
81
- else:
82
- run_cli()
 
 
 
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()