语音识别应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
648 B

  1. """
  2. WSGI config for Zhijian_Project_WebService project.
  3. It exposes the WSGI callable as a module-level variable named ``application``.
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
  6. """
  7. import os
  8. import threading
  9. from text_analysis.views import upload,getResult
  10. t = threading.Thread(target=upload, name='upload')
  11. t.daemon = True
  12. t.start()
  13. r = threading.Thread(target=getResult, name='getResult')
  14. r.daemon = True
  15. r.start()
  16. from django.core.wsgi import get_wsgi_application
  17. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "text_analysis.settings")
  18. application = get_wsgi_application()