Spaces:
Running
Running
ZhangYuhan
commited on
Commit
·
d0e65e5
1
Parent(s):
d46e691
update offline
Browse files- serve/inference.py +0 -3
serve/inference.py
CHANGED
@@ -255,13 +255,10 @@ def generate_t2s_multi(gen_func, render_func,
|
|
255 |
ip = get_ip(request)
|
256 |
t2s_multi_logger.info(f"generate. ip: {ip}")
|
257 |
|
258 |
-
print(state_0.prompt, text)
|
259 |
state_0.model_name, state_1.model_name = model_name_0, model_name_1
|
260 |
state_0.prompt, state_1.prompt = text, text
|
261 |
state_0.evaluted_dims, state_1.evaluted_dims = 0, 0
|
262 |
-
|
263 |
try:
|
264 |
-
print(state_0.offline_idx, prompt_list.index(text))
|
265 |
idx = prompt_list.index(text)
|
266 |
state_0.offline, state_1.offline = True, True
|
267 |
state_0.offline_idx, state_1.offline_idx = idx, idx
|
|
|
255 |
ip = get_ip(request)
|
256 |
t2s_multi_logger.info(f"generate. ip: {ip}")
|
257 |
|
|
|
258 |
state_0.model_name, state_1.model_name = model_name_0, model_name_1
|
259 |
state_0.prompt, state_1.prompt = text, text
|
260 |
state_0.evaluted_dims, state_1.evaluted_dims = 0, 0
|
|
|
261 |
try:
|
|
|
262 |
idx = prompt_list.index(text)
|
263 |
state_0.offline, state_1.offline = True, True
|
264 |
state_0.offline_idx, state_1.offline_idx = idx, idx
|