Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def getQuestions(job_description: str, no_of_questions: int):
|
|
16 |
"content": "You are a helpful assistant designed to output JSON in this format [question-text as key and its value as answer-text]"},
|
17 |
{"role": "user",
|
18 |
"content": f"Given the job description [{job_description}] create {no_of_questions} "
|
19 |
-
f"interview questions and their corresponding answers"}
|
20 |
]
|
21 |
)
|
22 |
result = response.choices[0].message.content
|
@@ -28,7 +28,6 @@ def getQuestions(job_description: str, no_of_questions: int):
|
|
28 |
iface = gr.Interface(
|
29 |
fn=getQuestions,
|
30 |
inputs=["text", "number"],
|
31 |
-
outputs="json"
|
32 |
-
)
|
33 |
|
34 |
iface.launch(auth=("orblogic", "logicorb"))
|
|
|
16 |
"content": "You are a helpful assistant designed to output JSON in this format [question-text as key and its value as answer-text]"},
|
17 |
{"role": "user",
|
18 |
"content": f"Given the job description [{job_description}] create {no_of_questions} "
|
19 |
+
f"interview questions and their corresponding answers. You need to act like a domain expert and ask relevant questions to the job description only."}
|
20 |
]
|
21 |
)
|
22 |
result = response.choices[0].message.content
|
|
|
28 |
iface = gr.Interface(
|
29 |
fn=getQuestions,
|
30 |
inputs=["text", "number"],
|
31 |
+
outputs="json")
|
|
|
32 |
|
33 |
iface.launch(auth=("orblogic", "logicorb"))
|