Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
import huggingface_hub
Browse files
app.py
CHANGED
@@ -4,9 +4,12 @@ import time
|
|
4 |
import requests
|
5 |
from subprocess import Popen, PIPE
|
6 |
import threading
|
7 |
-
|
8 |
import gradio as gr
|
9 |
|
|
|
|
|
|
|
10 |
def run_xvaserver():
|
11 |
# start the process without waiting for a response
|
12 |
print('Running xVAServer subprocess...\n')
|
@@ -36,8 +39,7 @@ def run_xvaserver():
|
|
36 |
|
37 |
def load_model():
|
38 |
model_name = "Pendrokar/TorchMoji"
|
39 |
-
|
40 |
-
model_json_path = hf_hub_download(repo_id=model_name, filename="ccby_nvidia_hifi_6670_M.json")
|
41 |
# model_path = '/tmp/hfcache/models--Pendrokar--xvapitch_nvidia_6670/snapshots/2e138a7c459fb1cb1182dd7bc66813f5325d30fd/ccby_nvidia_hifi_6670_M.pt'
|
42 |
# model_json_path = '/tmp/hfcache/models--Pendrokar--xvapitch_nvidia_6670/snapshots/2e138a7c459fb1cb1182dd7bc66813f5325d30fd/ccby_nvidia_hifi_6670_M.json'
|
43 |
# try:
|
|
|
4 |
import requests
|
5 |
from subprocess import Popen, PIPE
|
6 |
import threading
|
7 |
+
from huggingface_hub import hf_hub_download
|
8 |
import gradio as gr
|
9 |
|
10 |
+
model_path = hf_hub_download(repo_id=model_name, filename="ccby_nvidia_hifi_6670_M.pt")
|
11 |
+
model_json_path = hf_hub_download(repo_id=model_name, filename="ccby_nvidia_hifi_6670_M.json")
|
12 |
+
|
13 |
def run_xvaserver():
|
14 |
# start the process without waiting for a response
|
15 |
print('Running xVAServer subprocess...\n')
|
|
|
39 |
|
40 |
def load_model():
|
41 |
model_name = "Pendrokar/TorchMoji"
|
42 |
+
|
|
|
43 |
# model_path = '/tmp/hfcache/models--Pendrokar--xvapitch_nvidia_6670/snapshots/2e138a7c459fb1cb1182dd7bc66813f5325d30fd/ccby_nvidia_hifi_6670_M.pt'
|
44 |
# model_json_path = '/tmp/hfcache/models--Pendrokar--xvapitch_nvidia_6670/snapshots/2e138a7c459fb1cb1182dd7bc66813f5325d30fd/ccby_nvidia_hifi_6670_M.json'
|
45 |
# try:
|