Spaces:
Sleeping
Sleeping
minor
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 128 |
# pipe_inversion = pipe_inversion.to('cpu')
|
| 129 |
print(f"#### 3 #### pipe_inversion.device: {pipe_inversion.device}")
|
| 130 |
print(f"#### 4 #### pipe_inference.device: {pipe_inference.device}")
|
| 131 |
-
|
| 132 |
return inversion_state, "Input has set!"
|
| 133 |
|
| 134 |
|
|
@@ -147,7 +147,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 147 |
@spaces.GPU
|
| 148 |
def edit(inversion_state, target_prompt):
|
| 149 |
if inversion_state is None:
|
| 150 |
-
raise gr.Error("Set inputs before editing
|
| 151 |
# if device == "cuda":
|
| 152 |
# image = editor.to(device).edit(target_prompt)
|
| 153 |
# else:
|
|
|
|
| 128 |
# pipe_inversion = pipe_inversion.to('cpu')
|
| 129 |
print(f"#### 3 #### pipe_inversion.device: {pipe_inversion.device}")
|
| 130 |
print(f"#### 4 #### pipe_inference.device: {pipe_inference.device}")
|
| 131 |
+
gr.Info('Input has set!')
|
| 132 |
return inversion_state, "Input has set!"
|
| 133 |
|
| 134 |
|
|
|
|
| 147 |
@spaces.GPU
|
| 148 |
def edit(inversion_state, target_prompt):
|
| 149 |
if inversion_state is None:
|
| 150 |
+
raise gr.Error("Set inputs before editing. Progress indication below")
|
| 151 |
# if device == "cuda":
|
| 152 |
# image = editor.to(device).edit(target_prompt)
|
| 153 |
# else:
|