improve result
Browse files
app.py
CHANGED
@@ -64,15 +64,14 @@ async def resume_AI(data):
|
|
64 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
65 |
result_1 = cover_letter_agent.run_sync(user_prompt= f"Write cover letter for this resume {result.data}")
|
66 |
st.markdown(result.data)
|
67 |
-
st.text(result_1)
|
68 |
|
69 |
def extract_data(feed):
|
70 |
|
71 |
with pdfplumber.open(feed) as pdf:
|
72 |
pages = pdf.pages
|
73 |
for p in pages:
|
74 |
-
|
75 |
-
print(p.extract_text_lines())
|
76 |
data.append(p.extract_text())
|
77 |
|
78 |
|
|
|
64 |
result = agent.run_sync(user_prompt=f"Improve this resume: {data}")
|
65 |
result_1 = cover_letter_agent.run_sync(user_prompt= f"Write cover letter for this resume {result.data}")
|
66 |
st.markdown(result.data)
|
67 |
+
st.text(result_1.data)
|
68 |
|
69 |
def extract_data(feed):
|
70 |
|
71 |
with pdfplumber.open(feed) as pdf:
|
72 |
pages = pdf.pages
|
73 |
for p in pages:
|
74 |
+
|
|
|
75 |
data.append(p.extract_text())
|
76 |
|
77 |
|