mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 22:26:36 +00:00
fix no inputs warning
This commit is contained in:
parent
a15751892e
commit
1cad8d429e
3
wgp.py
3
wgp.py
@ -30,7 +30,6 @@ import io
|
||||
from PIL import Image
|
||||
import zipfile
|
||||
import tempfile
|
||||
import shutil
|
||||
import atexit
|
||||
global_queue_ref = []
|
||||
AUTOSAVE_FILENAME = "queue.zip"
|
||||
@ -105,7 +104,7 @@ def process_prompt_and_add_tasks(state, model_choice):
|
||||
inputs.pop("lset_name")
|
||||
if inputs == None:
|
||||
gr.Warning("Internal state error: Could not retrieve inputs for the model.")
|
||||
return update_queue_data(queue)
|
||||
return get_queue_table(queue)
|
||||
prompt = inputs["prompt"]
|
||||
if len(prompt) ==0:
|
||||
gr.Info("Prompt cannot be empty.")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user