Spaces:
Configuration error
Configuration error
change schemas
Browse files- config/settings.py +10 -2
- config/urls.py +2 -2
config/settings.py
CHANGED
|
@@ -49,7 +49,7 @@ INSTALLED_APPS = [
|
|
| 49 |
CORS_ALLOW_ALL_ORIGINS = True # If this is used then `CORS_ALLOWED_ORIGINS` will not have any effect
|
| 50 |
CORS_ALLOW_CREDENTIALS = True
|
| 51 |
CORS_ALLOWED_ORIGINS = [
|
| 52 |
-
'https://undetectable-voice-clone.hf.space',
|
| 53 |
]
|
| 54 |
|
| 55 |
REST_FRAMEWORK = {
|
|
@@ -61,7 +61,15 @@ REST_FRAMEWORK = {
|
|
| 61 |
AUTHENTICATION_BACKENDS = [
|
| 62 |
'django.contrib.auth.backends.ModelBackend',
|
| 63 |
]
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
X_FRAME_OPTIONS = 'ALLOW-FROM https://huggingface.co/'
|
| 66 |
|
| 67 |
MIDDLEWARE = [
|
|
|
|
| 49 |
CORS_ALLOW_ALL_ORIGINS = True # If this is used then `CORS_ALLOWED_ORIGINS` will not have any effect
|
| 50 |
CORS_ALLOW_CREDENTIALS = True
|
| 51 |
CORS_ALLOWED_ORIGINS = [
|
| 52 |
+
'https://undetectable-voice-clone.hf.space',
|
| 53 |
]
|
| 54 |
|
| 55 |
REST_FRAMEWORK = {
|
|
|
|
| 61 |
AUTHENTICATION_BACKENDS = [
|
| 62 |
'django.contrib.auth.backends.ModelBackend',
|
| 63 |
]
|
| 64 |
+
SWAGGER_SETTINGS = {
|
| 65 |
+
'SECURITY_DEFINITIONS': {
|
| 66 |
+
'Token': {
|
| 67 |
+
'type': 'apiKey',
|
| 68 |
+
'name': 'Authorization',
|
| 69 |
+
'in': 'header'
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
X_FRAME_OPTIONS = 'ALLOW-FROM https://huggingface.co/'
|
| 74 |
|
| 75 |
MIDDLEWARE = [
|
config/urls.py
CHANGED
|
@@ -6,10 +6,10 @@ from drf_yasg import openapi
|
|
| 6 |
|
| 7 |
schema_view = get_schema_view(
|
| 8 |
openapi.Info(
|
| 9 |
-
title="
|
| 10 |
default_version='v1',
|
| 11 |
description="Your API Description",
|
| 12 |
-
terms_of_service="https://
|
| 13 |
contact=openapi.Contact(email="[email protected]"),
|
| 14 |
license=openapi.License(name="Your License"),
|
| 15 |
),
|
|
|
|
| 6 |
|
| 7 |
schema_view = get_schema_view(
|
| 8 |
openapi.Info(
|
| 9 |
+
title="Voice Clone",
|
| 10 |
default_version='v1',
|
| 11 |
description="Your API Description",
|
| 12 |
+
terms_of_service="https://huggingface.co/spaces/undetectable/voice-clone",
|
| 13 |
contact=openapi.Contact(email="[email protected]"),
|
| 14 |
license=openapi.License(name="Your License"),
|
| 15 |
),
|