acecalisto3 commited on
Commit
a2b9ede
·
verified ·
1 Parent(s): b0aa70e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -1,4 +1,5 @@
1
- # Add these imports at the top of your file
 
2
  from typing import List, Dict, Optional, Any, Tuple
3
  from dataclasses import dataclass
4
  from enum import Enum
@@ -1463,12 +1464,5 @@ class StreamlitInterface:
1463
  # Section 7: System Information
1464
  st.subheader("System Info")
1465
  st.write(f"Python Version: {sys.version}")
1466
- st.write(f"Platform: {platform.platform()}")
1467
- st.write(f"Available Memory: {psutil.virtual_memory().available / (1024**3):.1f} GB free")
1468
-
1469
- def main():
1470
- app = AutonomousAgentApp()
1471
- app.run()
1472
-
1473
- if __name__ == "__main__":
1474
- main()
 
1
+ import platform
2
+ import psutil
3
  from typing import List, Dict, Optional, Any, Tuple
4
  from dataclasses import dataclass
5
  from enum import Enum
 
1464
  # Section 7: System Information
1465
  st.subheader("System Info")
1466
  st.write(f"Python Version: {sys.version}")
1467
+ st.write(f"Platform: {platform.platform()}") # <-- Now works because `platform` is imported
1468
+ st.write(f"Available Memory: {psutil.virtual_memory().available / (1024**3):.1f} GB free")