Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -216,6 +216,16 @@ def analyze_segment_with_gemini(cluster_text, is_full_text=False):
|
|
216 |
// More segments...
|
217 |
]
|
218 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
"""
|
220 |
else:
|
221 |
prompt = f"""
|
@@ -265,6 +275,14 @@ def analyze_segment_with_gemini(cluster_text, is_full_text=False):
|
|
265 |
// More questions...
|
266 |
]
|
267 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
"""
|
269 |
|
270 |
response = llm.invoke(prompt)
|
|
|
216 |
// More segments...
|
217 |
]
|
218 |
}}
|
219 |
+
|
220 |
+
|
221 |
+
OR if the text is just introductory, concluding, or insufficient:
|
222 |
+
{{
|
223 |
+
"status": "insufficient",
|
224 |
+
"reason": "Brief explanation of why (e.g., 'Text is primarily self-introduction', 'Text is too short', etc.)"
|
225 |
+
}}
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
"""
|
230 |
else:
|
231 |
prompt = f"""
|
|
|
275 |
// More questions...
|
276 |
]
|
277 |
}}
|
278 |
+
|
279 |
+
OR if the text is just introductory, concluding, or insufficient:
|
280 |
+
{{
|
281 |
+
"status": "insufficient",
|
282 |
+
"reason": "Brief explanation of why (e.g., 'Text is primarily self-introduction', 'Text is too short', etc.)"
|
283 |
+
}}
|
284 |
+
|
285 |
+
|
286 |
"""
|
287 |
|
288 |
response = llm.invoke(prompt)
|