Spaces:
Sleeping
Sleeping
to see raw question
Browse files
app.py
CHANGED
|
@@ -36,6 +36,11 @@ def ui_search(query, num_results=3):
|
|
| 36 |
# Get the full question text
|
| 37 |
question_text = r['documents'][0][i]
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Parse question and answer choices
|
| 40 |
import re
|
| 41 |
# Look for answer choices pattern (A. or A) followed by text)
|
|
|
|
| 36 |
# Get the full question text
|
| 37 |
question_text = r['documents'][0][i]
|
| 38 |
|
| 39 |
+
# DEBUG: Show raw text
|
| 40 |
+
out += "DEBUG RAW TEXT:\n"
|
| 41 |
+
out += repr(question_text[:500]) + "\n"
|
| 42 |
+
out += "="*60 + "\n\n"
|
| 43 |
+
|
| 44 |
# Parse question and answer choices
|
| 45 |
import re
|
| 46 |
# Look for answer choices pattern (A. or A) followed by text)
|