Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import fitz
|
|
| 5 |
import joblib
|
| 6 |
import numpy as np
|
| 7 |
import openai
|
| 8 |
-
from google.colab import userdata
|
| 9 |
import pandas as pd
|
| 10 |
from fpdf import FPDF
|
| 11 |
import tempfile
|
|
@@ -70,8 +69,7 @@ def weighted_score(text):
|
|
| 70 |
text = text.lower()
|
| 71 |
return sum(weight for kw, weight in weighted_keywords.items() if kw in text)
|
| 72 |
|
| 73 |
-
|
| 74 |
-
openai.api_key = userdata.get('openai')
|
| 75 |
|
| 76 |
# GPT Job Role Prediction
|
| 77 |
roles = ["AI Engineer", "Data Scientist", "Project Manager", "Sales Executive", "Teacher", "HR Specialist", "Security Officer"]
|
|
|
|
| 5 |
import joblib
|
| 6 |
import numpy as np
|
| 7 |
import openai
|
|
|
|
| 8 |
import pandas as pd
|
| 9 |
from fpdf import FPDF
|
| 10 |
import tempfile
|
|
|
|
| 69 |
text = text.lower()
|
| 70 |
return sum(weight for kw, weight in weighted_keywords.items() if kw in text)
|
| 71 |
|
| 72 |
+
|
|
|
|
| 73 |
|
| 74 |
# GPT Job Role Prediction
|
| 75 |
roles = ["AI Engineer", "Data Scientist", "Project Manager", "Sales Executive", "Teacher", "HR Specialist", "Security Officer"]
|