Delete flowchart.py
Browse files- flowchart.py +0 -83
flowchart.py
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
import graphviz
|
2 |
-
import streamlit as st
|
3 |
-
|
4 |
-
def display_architecture_diagram():
|
5 |
-
# Create a directed graph
|
6 |
-
graph = graphviz.Digraph(format='png')
|
7 |
-
|
8 |
-
# Define node styles
|
9 |
-
styles = {
|
10 |
-
'start': {'shape': 'cylinder', 'style': 'filled', 'fillcolor': '#22c55e', 'fontcolor': 'white'},
|
11 |
-
'input': {'shape': 'box', 'style': 'filled', 'fillcolor': '#f97316', 'fontcolor': 'white'},
|
12 |
-
'decision': {'shape': 'diamond', 'style': 'filled', 'fillcolor': '#0ea5e9', 'fontcolor': 'white'},
|
13 |
-
'process': {'shape': 'box', 'style': 'filled', 'fillcolor': '#8b5cf6', 'fontcolor': 'white'},
|
14 |
-
'output': {'shape': 'box', 'style': 'filled', 'fillcolor': '#ec4899', 'fontcolor': 'white'}
|
15 |
-
}
|
16 |
-
|
17 |
-
# Add nodes
|
18 |
-
graph.node('Start', 'π Start\nApplication', **styles['start'])
|
19 |
-
graph.node('Upload', 'π Upload DOCX\nResume', **styles['input'])
|
20 |
-
graph.node('JobDesc', 'πΌ Input Job\nDescription', **styles['input'])
|
21 |
-
graph.node('ApiKey', 'π Input GROQ\nAPI Key', **styles['input'])
|
22 |
-
graph.node('ChooseAction', 'π Choose\nAction', **styles['decision'])
|
23 |
-
graph.node('AnalysisType', 'π Analysis\nType', **styles['decision'])
|
24 |
-
|
25 |
-
# Add process nodes with detailed content
|
26 |
-
quick_analysis = """Quick Analysis
|
27 |
-
ββββββββββββββ
|
28 |
-
β’ Skills Match Rating
|
29 |
-
β’ Experience Alignment
|
30 |
-
β’ Pros and Cons
|
31 |
-
β’ Match Percentage"""
|
32 |
-
graph.node('QuickAnalysis', quick_analysis, **styles['process'])
|
33 |
-
|
34 |
-
in_depth = """In-Depth Analysisc
|
35 |
-
ββββββββββββββ
|
36 |
-
β’ Comprehensive Skill Gap
|
37 |
-
β’ Detailed Experience Review
|
38 |
-
β’ Career Path Alignment
|
39 |
-
β’ Strategic Recommendations"""
|
40 |
-
graph.node('InDepthAnalysis', in_depth, **styles['process'])
|
41 |
-
|
42 |
-
enhancement = """Resume Enhancement
|
43 |
-
ββββββββββββββ
|
44 |
-
β’ In-Depth Analysis
|
45 |
-
β’ Format Optimization
|
46 |
-
β’ Content Improvement
|
47 |
-
β’ Design Enhancement"""
|
48 |
-
graph.node('Enhancement', enhancement, **styles['process'])
|
49 |
-
|
50 |
-
# Add output nodes
|
51 |
-
results = """Analysis Results
|
52 |
-
ββββββββββββββ
|
53 |
-
π Analysis Summary
|
54 |
-
π Recommendations
|
55 |
-
β
Action Items"""
|
56 |
-
graph.node('Results', results, **styles['output'])
|
57 |
-
|
58 |
-
enhanced = """Enhanced Resume
|
59 |
-
ββββββββββββββ
|
60 |
-
π Optimized DOCX
|
61 |
-
ποΈ Text Highlighting Changes
|
62 |
-
π HTML Version"""
|
63 |
-
graph.node('EnhancedOutputs', enhanced, **styles['output'])
|
64 |
-
|
65 |
-
# Add edges
|
66 |
-
graph.edge('Start', 'Upload')
|
67 |
-
graph.edge('Upload', 'JobDesc')
|
68 |
-
graph.edge('JobDesc', 'ApiKey')
|
69 |
-
graph.edge('ApiKey', 'ChooseAction')
|
70 |
-
graph.edge('ChooseAction', 'AnalysisType', 'Analyze')
|
71 |
-
graph.edge('ChooseAction', 'Enhancement', 'Enhance')
|
72 |
-
graph.edge('AnalysisType', 'QuickAnalysis', 'Quick')
|
73 |
-
graph.edge('AnalysisType', 'InDepthAnalysis', 'In-Depth')
|
74 |
-
graph.edge('QuickAnalysis', 'Results')
|
75 |
-
graph.edge('InDepthAnalysis', 'Results')
|
76 |
-
graph.edge('Enhancement', 'EnhancedOutputs')
|
77 |
-
graph.edge('Results', 'ChooseAction', 'New Analysis')
|
78 |
-
graph.edge('EnhancedOutputs', 'ChooseAction', 'New Analysis')
|
79 |
-
|
80 |
-
# Graph settings
|
81 |
-
graph.attr(rankdir='TB', splines='ortho')
|
82 |
-
|
83 |
-
return graph
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|