Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI Tutor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Salma Mohammed Hamed
AI Tutor
Commits
35fbd024
Commit
35fbd024
authored
Nov 19, 2025
by
salma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix serving endpoints tags
parent
396e5e31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
curriculum.py
self_hosted_env/voice_agent/routers/curriculum.py
+0
-18
quiz.py
self_hosted_env/voice_agent/routers/quiz.py
+0
-18
No files found.
self_hosted_env/voice_agent/routers/curriculum.py
View file @
35fbd024
...
...
@@ -9,24 +9,6 @@ from process_pdf_pipline import process_pdf_curriculum_in_background
router
=
APIRouter
(
tags
=
[
"Curriculum"
])
@
router
.
get
(
"/curriculum-upload"
)
async
def
serve_curriculum_upload
():
"""Serve the curriculum upload HTML file"""
try
:
static_file
=
Path
(
"static/curriculum_PDF_uploader.html"
)
if
static_file
.
exists
():
return
FileResponse
(
static_file
)
current_file
=
Path
(
"curriculum_PDF_uploader.html"
)
if
current_file
.
exists
():
return
FileResponse
(
current_file
)
raise
HTTPException
(
status_code
=
404
,
detail
=
"Curriculum upload interface not found"
)
except
Exception
as
e
:
print
(
f
"Error serving curriculum upload interface: {e}"
)
raise
HTTPException
(
status_code
=
500
,
detail
=
f
"Error serving interface: {str(e)}"
)
...
...
self_hosted_env/voice_agent/routers/quiz.py
View file @
35fbd024
...
...
@@ -167,24 +167,6 @@ async def grade_quiz_handler(submission: QuizSubmission):
"results"
:
results
}
@
router
.
get
(
"/test-yourself"
)
async
def
serve_test_yourself_interface
():
"""Serve the interactive 'Test Yourself' HTML file"""
try
:
# Check for the file in a 'static' folder first
static_file
=
Path
(
"static/test_yourself_interface.html"
)
if
static_file
.
exists
():
return
FileResponse
(
static_file
)
# Fallback to the root directory
current_file
=
Path
(
"test_yourself_interface.html"
)
if
current_file
.
exists
():
return
FileResponse
(
current_file
)
raise
HTTPException
(
status_code
=
404
,
detail
=
"Interactive quiz interface not found"
)
except
Exception
as
e
:
print
(
f
"Error serving 'Test Yourself' interface: {e}"
)
raise
HTTPException
(
status_code
=
500
,
detail
=
f
"Error serving interface: {str(e)}"
)
@
router
.
get
(
"/quiz/options/curricula"
)
async
def
get_curricula_options
(
request
:
Request
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment