luigi-liu-tw commited on
Commit
9466288
·
1 Parent(s): a430811

Fix cancel generation feature by removing GeneratorExit handler

Browse files

- Removed GeneratorExit exception handler from UI layer that was preventing cancellation
- Allow GeneratorExit to propagate to backend generator where cancel_event checks work
- Cancel button now properly stops text generation mid-stream
- UI state resets correctly after cancellation

1 file changed -9
app.py-9