语音识别应用
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.

22 lines
541 B

  1. #!/usr/bin/env python
  2. import os
  3. import sys
  4. import threading
  5. from text_analysis.views import upload,getResult
  6. import django
  7. if __name__ == "__main__":
  8. t = threading.Thread(target=upload, name='upload')
  9. t.daemon = True
  10. t.start()
  11. r = threading.Thread(target=getResult, name='getResult')
  12. r.daemon = True
  13. r.start()
  14. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "text_analysis.settings")
  15. django.setup()
  16. from django.core.management import execute_from_command_line
  17. execute_from_command_line(sys.argv)