umair894 commited on
Commit
0ced9fe
·
1 Parent(s): e390a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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"))