Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
deepmoji fix included
Browse files
resources/app/no_server.py
CHANGED
|
@@ -154,7 +154,7 @@ def loadModel(post_data):
|
|
| 154 |
|
| 155 |
return req_response
|
| 156 |
|
| 157 |
-
def synthesize(post_data):
|
| 158 |
req_response = {}
|
| 159 |
logger.info("Direct: synthesize")
|
| 160 |
post_data["pluginsContext"] = json.loads(post_data["pluginsContext"])
|
|
|
|
| 154 |
|
| 155 |
return req_response
|
| 156 |
|
| 157 |
+
def synthesize(post_data, stream=False):
|
| 158 |
req_response = {}
|
| 159 |
logger.info("Direct: synthesize")
|
| 160 |
post_data["pluginsContext"] = json.loads(post_data["pluginsContext"])
|
resources/app/plugins/deepmoji_plugin/DeepMoji/torchmoji/global_variables.py
CHANGED
|
@@ -6,6 +6,7 @@ from os.path import abspath, dirname
|
|
| 6 |
from huggingface_hub import HfApi
|
| 7 |
|
| 8 |
api = HfApi()
|
|
|
|
| 9 |
commits = api.list_repo_commits(repo_id=hf_model_name)
|
| 10 |
latest_commit_sha = commits[0].commit_id
|
| 11 |
|
|
|
|
| 6 |
from huggingface_hub import HfApi
|
| 7 |
|
| 8 |
api = HfApi()
|
| 9 |
+
hf_model_name = "Pendrokar/TorchMoji"
|
| 10 |
commits = api.list_repo_commits(repo_id=hf_model_name)
|
| 11 |
latest_commit_sha = commits[0].commit_id
|
| 12 |
|