Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ def setup_virtual_env():
|
|
| 8 |
|
| 9 |
# Activate the virtual environment
|
| 10 |
activate_script = os.path.join('venv_ui', 'bin', 'activate')
|
|
|
|
| 11 |
subprocess.run([activate_script], shell=True)
|
| 12 |
|
| 13 |
# Install required packages
|
|
@@ -35,7 +36,7 @@ def move_files_and_subdirs(source_dir):
|
|
| 35 |
subprocess.run(['git', 'clone', 'https://github.com/fakerybakery/metavoice-src', './mvsrc'])
|
| 36 |
time.sleep(3)
|
| 37 |
subprocess.run(['pip', 'uninstall', '-y', 'pydantic'])
|
| 38 |
-
subprocess.run(['pip', 'install', '-U', '
|
| 39 |
move_files_and_subdirs("mvsrc")
|
| 40 |
time.sleep(3)
|
| 41 |
serving = subprocess.Popen(['python', 'fam/llm/serving.py', '--huggingface_repo_id', 'metavoiceio/metavoice-1B-v0.1'])
|
|
|
|
| 8 |
|
| 9 |
# Activate the virtual environment
|
| 10 |
activate_script = os.path.join('venv_ui', 'bin', 'activate')
|
| 11 |
+
subprocess.run(['chmod', '+x', activate_script], shell=True)
|
| 12 |
subprocess.run([activate_script], shell=True)
|
| 13 |
|
| 14 |
# Install required packages
|
|
|
|
| 36 |
subprocess.run(['git', 'clone', 'https://github.com/fakerybakery/metavoice-src', './mvsrc'])
|
| 37 |
time.sleep(3)
|
| 38 |
subprocess.run(['pip', 'uninstall', '-y', 'pydantic'])
|
| 39 |
+
subprocess.run(['pip', 'install', '-U', 'pydantic==1.7.4'])
|
| 40 |
move_files_and_subdirs("mvsrc")
|
| 41 |
time.sleep(3)
|
| 42 |
serving = subprocess.Popen(['python', 'fam/llm/serving.py', '--huggingface_repo_id', 'metavoiceio/metavoice-1B-v0.1'])
|