Spaces:
Sleeping
Sleeping
Delete doc_utils.py
Browse files- doc_utils.py +0 -13
doc_utils.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
# doc_utils.py
|
| 2 |
-
|
| 3 |
-
import requests
|
| 4 |
-
|
| 5 |
-
def get_questions_from_doc(url):
|
| 6 |
-
try:
|
| 7 |
-
response = requests.get(url)
|
| 8 |
-
response.raise_for_status()
|
| 9 |
-
text = response.text
|
| 10 |
-
questions = [line.strip() for line in text.splitlines() if line.strip().endswith('?')]
|
| 11 |
-
return questions
|
| 12 |
-
except Exception as e:
|
| 13 |
-
return [f"Error loading questions: {e}"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|