Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def flux_tab(): #image_input): # image_input을 인자로 받습니다.
|
|
78 |
output_image = gr.Image(type="pil", label="Output")
|
79 |
download_button = gr.File(label="Download")
|
80 |
generate_button = gr.Button("이미지 생성")
|
81 |
-
use_in_text2lipsync_button = gr.Button("이 이미지를 Text2Lipsync에서 사용하기") # 새로운 버튼 추가
|
82 |
|
83 |
# 클릭 이벤트를 정의
|
84 |
generate_button.click(
|
@@ -87,12 +87,12 @@ def flux_tab(): #image_input): # image_input을 인자로 받습니다.
|
|
87 |
outputs=[output_image, download_button]
|
88 |
)
|
89 |
|
90 |
-
# 새로운 버튼 클릭 이벤트 정의
|
91 |
-
use_in_text2lipsync_button.click(
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
)
|
96 |
|
97 |
#========================= # FLUX 모델 로드 설정
|
98 |
|
|
|
78 |
output_image = gr.Image(type="pil", label="Output")
|
79 |
download_button = gr.File(label="Download")
|
80 |
generate_button = gr.Button("이미지 생성")
|
81 |
+
#use_in_text2lipsync_button = gr.Button("이 이미지를 Text2Lipsync에서 사용하기") # 새로운 버튼 추가
|
82 |
|
83 |
# 클릭 이벤트를 정의
|
84 |
generate_button.click(
|
|
|
87 |
outputs=[output_image, download_button]
|
88 |
)
|
89 |
|
90 |
+
# # 새로운 버튼 클릭 이벤트 정의
|
91 |
+
# use_in_text2lipsync_button.click(
|
92 |
+
# fn=lambda img: img, # 간단한 람다 함수를 사용하여 이미지를 그대로 전달
|
93 |
+
# inputs=[output_image], # 생성된 이미지를 입력으로 사용
|
94 |
+
# outputs=[image_input] # Text to LipSync 탭의 image_input을 업데이트
|
95 |
+
# )
|
96 |
|
97 |
#========================= # FLUX 모델 로드 설정
|
98 |
|