hsienchen commited on
Commit
46cad6e
1 Parent(s): 2e1f85f

Update app_myQ.py

Browse files
Files changed (1) hide show
  1. app_myQ.py +6 -2
app_myQ.py CHANGED
@@ -140,8 +140,12 @@ def image_to_base64(image_path):
140
  def quali_response(job_text):
141
 
142
  response = txt_model.generate_content(txt_prompt_quali+job_text)
143
- content = response.result.candidates[0].content
144
- return content
 
 
 
 
145
 
146
  # Function that takes User Inputs, generates Response and displays on Chat UI
147
  def app1_response(img):
 
140
  def quali_response(job_text):
141
 
142
  response = txt_model.generate_content(txt_prompt_quali+job_text)
143
+ # Assuming response is your original response object
144
+ content = response.result['candidates'][0]['content']
145
+ # Extracting the text part
146
+ text = content['parts'][0]['text']
147
+ # Printing the extracted text
148
+ return text
149
 
150
  # Function that takes User Inputs, generates Response and displays on Chat UI
151
  def app1_response(img):