Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ expression_prompts = {
|
|
| 38 |
|
| 39 |
# 生成函数
|
| 40 |
@torch.inference_mode()
|
| 41 |
-
def generate_expression(
|
| 42 |
prompt = expression_prompts[expression]
|
| 43 |
negative_prompt = "blurry, low quality, distorted, bad anatomy"
|
| 44 |
|
|
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
|
|
| 66 |
|
| 67 |
submit_btn.click(
|
| 68 |
fn=generate_expression,
|
| 69 |
-
inputs=[
|
| 70 |
outputs=[image_output, log_output]
|
| 71 |
)
|
| 72 |
|
|
|
|
| 38 |
|
| 39 |
# 生成函数
|
| 40 |
@torch.inference_mode()
|
| 41 |
+
def generate_expression(expression):
|
| 42 |
prompt = expression_prompts[expression]
|
| 43 |
negative_prompt = "blurry, low quality, distorted, bad anatomy"
|
| 44 |
|
|
|
|
| 66 |
|
| 67 |
submit_btn.click(
|
| 68 |
fn=generate_expression,
|
| 69 |
+
inputs=[expression_input],
|
| 70 |
outputs=[image_output, log_output]
|
| 71 |
)
|
| 72 |
|