aghilsabu commited on
Commit
8942ea4
·
1 Parent(s): 21c534a

feat: add main application entry point

Browse files
Files changed (1) hide show
  1. app.py +31 -0
app.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """CodeAtlas - AI-Powered Codebase Visualization Tool"""
2
+
3
+ from src.ui import create_app, CUSTOM_CSS
4
+ from src.config import AUDIOS_DIR
5
+ import gradio as gr
6
+
7
+
8
+ def main():
9
+ """Launch the CodeAtlas application."""
10
+ app, custom_css = create_app()
11
+
12
+ # Use Soft theme with orange accent
13
+ theme = gr.themes.Soft(
14
+ primary_hue=gr.themes.colors.orange,
15
+ secondary_hue=gr.themes.colors.orange,
16
+ neutral_hue=gr.themes.colors.gray,
17
+ )
18
+
19
+ app.launch(
20
+ share=False,
21
+ server_name="0.0.0.0",
22
+ server_port=7860,
23
+ mcp_server=True,
24
+ theme=theme,
25
+ css=custom_css,
26
+ allowed_paths=[str(AUDIOS_DIR)],
27
+ )
28
+
29
+
30
+ if __name__ == "__main__":
31
+ main()