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