Spaces:
Runtime error
Runtime error
File size: 592 Bytes
fa7ab06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
"""
Run this script first to install requirements.txt and create config file
"""
import configparser
import sys
import subprocess
# install requirements.txt
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', 'requirements.txt'])
# create default config file
config = configparser.ConfigParser()
# Required
config['REQUIRED'] = {
"openai-api-key": "Replace this with your key"
}
# Optional
config['OPTIONAL'] = {
'transcript-filepath': 'transcript.txt',
'notes-filepath': 'notes.txt'
}
with open('config.ini', 'w') as configfile:
config.write(configfile) |