Spaces:
Runtime error
Runtime error
| from django.contrib import admin | |
| from django.urls import path, include | |
| from rose_tts_api.settings import DEBUG | |
| from tts.views import TtsRosePerguntasView, TtsMultiSpeakerView, TestError | |
| # from tts.views import TtsView | |
| # End-points: | |
| # - /api/predict/multispeaker | |
| # - /api/predict/rose_perguntas | |
| urlpatterns = [ | |
| # path('', TtsView.as_view(), name='tts_view') | |
| path('multispeaker', TtsMultiSpeakerView.as_view(), name='multispeaker'), | |
| path('rose_perguntas', TtsRosePerguntasView.as_view(), name='rose-perguntas'), | |
| ] | |
| # This endpoint forces error | |
| # Used to test Log System. | |
| if DEBUG: | |
| urlpatterns.append( path('test-error', TestError.as_view(), name='test-error') | |
| ) | |