Spaces:
Running
Running
Commit
·
ff86b84
1
Parent(s):
0dc9435
Finetune prompt
Browse files
app.py
CHANGED
@@ -156,8 +156,9 @@ async def image_question(file: UploadFile = File(...)):
|
|
156 |
}]
|
157 |
# Ask Gemini to return JSON so we can split Q & A
|
158 |
prompt = (
|
159 |
-
"From the screenshot extract the interview question (English). "
|
160 |
-
"
|
|
|
161 |
"Return pure JSON: {\"question\":\"...\",\"answer\":\"...\"}"
|
162 |
)
|
163 |
# Send prompt and image
|
|
|
156 |
}]
|
157 |
# Ask Gemini to return JSON so we can split Q & A
|
158 |
prompt = (
|
159 |
+
"From the screenshot extract the interview question(s) (English). "
|
160 |
+
"There could be more than 1 questions, each questions and answer are split each by a semicolon ';'. \n"
|
161 |
+
"Answer concisely (≤200 words). "
|
162 |
"Return pure JSON: {\"question\":\"...\",\"answer\":\"...\"}"
|
163 |
)
|
164 |
# Send prompt and image
|