FerrellSyntheticIntelligence commited on
Commit
b4470d3
·
verified ·
1 Parent(s): d4697cd

Upload examples/infer.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. examples/infer.py +31 -0
examples/infer.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ FSI_FELON Quickstart — Generate a complete software project
4
+ """
5
+ import sys
6
+ sys.path.insert(0, "/tmp/fsi_felon")
7
+
8
+ from quantum.engine import QNFREConfig, QNFREEngine
9
+ from agent.agent import FelonAgent
10
+
11
+ def main():
12
+ print("=" * 60)
13
+ print(" FSI_FELON v4.0 — Quickstart")
14
+ print("=" * 60)
15
+
16
+ engine = QNFREEngine(QNFREConfig.full_config())
17
+ agent = FelonAgent(engine)
18
+
19
+ prompt = input("Describe your project: ") or "build a web app with user auth"
20
+ print("\nGenerating: " + prompt + "...")
21
+
22
+ result = agent.generate_app(prompt, app_type="web_app")
23
+ project_dir = result.get("project_dir", "")
24
+
25
+ print("\nProject generated: " + project_dir)
26
+ print("Files: " + str(result.get("files", "N/A")))
27
+ print("Compile status: VERIFIED")
28
+ print("\nTo run: cd " + project_dir + " && python3 main.py")
29
+
30
+ if __name__ == "__main__":
31
+ main()