User_Study / app.py
Scherzando's picture
Publish four-sample randomized MOS study
804f155 verified
Raw History Blame Contribute Delete
338 Bytes
"""Launch the HTML study using the existing Space's Python entry point."""
import os
from pathlib import Path
import sys
os.environ['STUDY_DATA'] = str(Path(__file__).resolve().parent)
sys.argv = ['server.py', '--host', '0.0.0.0', '--port', '7860', '--no-open', '--results', '/tmp/study-responses.sqlite3']
from server import main
main()