Spaces:
Sleeping
Sleeping
jwkirchenbauer
commited on
Commit
•
7c3b96d
1
Parent(s):
c958b82
pop prompt before state created
Browse files- demo_watermark.py +1 -1
demo_watermark.py
CHANGED
@@ -351,8 +351,8 @@ def run_gradio(args, model=None, device=None, tokenizer=None):
|
|
351 |
)
|
352 |
|
353 |
# Construct state for parameters, define updates and toggles
|
354 |
-
session_args = gr.State(value=args)
|
355 |
default_prompt = args.__dict__.pop("default_prompt")
|
|
|
356 |
|
357 |
with gr.Tab("Generate and Detect"):
|
358 |
|
|
|
351 |
)
|
352 |
|
353 |
# Construct state for parameters, define updates and toggles
|
|
|
354 |
default_prompt = args.__dict__.pop("default_prompt")
|
355 |
+
session_args = gr.State(value=args)
|
356 |
|
357 |
with gr.Tab("Generate and Detect"):
|
358 |
|