otzdarva commited on
Commit
57a21b5
·
verified ·
1 Parent(s): 6e13184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -2
app.py CHANGED
@@ -52,7 +52,7 @@ async def generate(section, content):
52
  return_full_text=True
53
  )
54
  output = ""
55
- async for response in stream:
56
  output += response.token.text
57
  return output
58
 
@@ -76,6 +76,24 @@ async def generate_resume(**kwargs):
76
  line-height: 1.6;
77
  color: #333;
78
  }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  .section {{
80
  margin-bottom: 20px;
81
  }}
@@ -90,6 +108,9 @@ async def generate_resume(**kwargs):
90
  padding: 0;
91
  list-style-type: disc;
92
  }}
 
 
 
93
  p {{
94
  margin-bottom: 10px;
95
  }}
@@ -106,7 +127,9 @@ async def generate_resume(**kwargs):
106
  <div class="container">
107
  <div class="header">
108
  <h1>{generated_content.get("name", "")}</h1>
109
- <p>{generated_content.get("email", "")} | {generated_content.get("phone", "")} | <a href="{generated_content.get("linkedin", "")}" target="_blank">{generated_content.get("linkedin", "")}</a></p>
 
 
110
  </div>
111
  <div class="section">
112
  <h2 class="section-header">Summary</h2>
 
52
  return_full_text=True
53
  )
54
  output = ""
55
+ for response in stream:
56
  output += response.token.text
57
  return output
58
 
 
76
  line-height: 1.6;
77
  color: #333;
78
  }}
79
+ .container {{
80
+ width: 80%;
81
+ margin: auto;
82
+ }}
83
+ .header {{
84
+ text-align: center;
85
+ margin-bottom: 30px;
86
+ }}
87
+ .header h1 {{
88
+ margin: 0;
89
+ font-size: 2rem;
90
+ color: #333;
91
+ }}
92
+ .header p {{
93
+ margin: 5px 0;
94
+ font-size: 1rem;
95
+ color: #666;
96
+ }}
97
  .section {{
98
  margin-bottom: 20px;
99
  }}
 
108
  padding: 0;
109
  list-style-type: disc;
110
  }}
111
+ ul ul {{
112
+ list-style-type: circle;
113
+ }}
114
  p {{
115
  margin-bottom: 10px;
116
  }}
 
127
  <div class="container">
128
  <div class="header">
129
  <h1>{generated_content.get("name", "")}</h1>
130
+ <p>Email: {generated_content.get("email", "")} | Phone: {generated_content.get("phone", "")}</p>
131
+ <p>{generated_content.get("professional_summary", "")}</p>
132
+ <p><a href="{generated_content.get("linkedin", "")}" target="_blank">LinkedIn: My Profile</a></p>
133
  </div>
134
  <div class="section">
135
  <h2 class="section-header">Summary</h2>