Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
|
6 |
|
7 |
|
@@ -19,7 +21,7 @@ criteria = [
|
|
19 |
]
|
20 |
|
21 |
# Set OpenAI API key
|
22 |
-
os.environ['OPENAI_API_KEY'] = #userdata.get('openAI2024')
|
23 |
|
24 |
# Define the resume screening function
|
25 |
def screen_resume(resume):
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
+
import llama-index
|
4 |
+
|
5 |
+
|
6 |
+
from resume_screener_pack.llama_index.packs.resume_screener.base import ResumeScreenerPack as llamapack
|
7 |
|
8 |
|
9 |
|
|
|
21 |
]
|
22 |
|
23 |
# Set OpenAI API key
|
24 |
+
os.environ['OPENAI_API_KEY'] = os.getenv("openai_key") #userdata.get('openAI2024')
|
25 |
|
26 |
# Define the resume screening function
|
27 |
def screen_resume(resume):
|