AOSSIE-Org / AOSSIE-Org/EduAid
[BUG]: /get_boolq_hard endpoint always crashes with ValueError due to invalid answer_style
- Lingua principale
- JavaScript
- Stelle
- 171
- Fork
- 425
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Bug Description
Bug Description :---
The `/get_boolq_hard` endpoint in [server.py] always raises a `ValueError` on every
request because it passes `answer_style="true_false"` which is not a valid value.
Root Cause :---
In [server.py] generated = qg.generate(
article=input_text,
num_questions=input_questions,
answer_style="true_false" #issue
In line 468 of Generator/main.py the only valid values accepted are ["all", "sentences", "multiple_choice"]
### Steps to Reproduce
Send any POST request to /get_boolq_hard with valid input.
### Logs and Screenshots
_No response_
### Environment Details
OS:Windows 11
Python:3.11.9
### Impact
Medium - Feature works but has issues
### Code of Conduct
- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.