forked from HKUDS/DeepCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreamlit_app.py
More file actions
38 lines (26 loc) · 766 Bytes
/
streamlit_app.py
File metadata and controls
38 lines (26 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
DeepCode - AI Research Engine
Streamlit Web Interface Main Application File
"""
import os
import sys
# Disable .pyc file generation
os.environ["PYTHONDONTWRITEBYTECODE"] = "1"
# Add parent directory to path for module imports
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
if parent_dir not in sys.path:
sys.path.insert(0, parent_dir)
# Import UI modules
from ui.layout import main_layout
def main():
"""
Main function - Streamlit application entry
All UI logic has been modularized into ui/ folder
"""
# Run main layout
sidebar_info = main_layout()
# Additional global logic can be added here if needed
return sidebar_info
if __name__ == "__main__":
main()