Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -370,7 +370,7 @@ You are allowed to make up film and branding names, and do them like 80's, 90's
|
|
370 |
base_prompt += f" Compress the output to be concise while retaining key visual details. MAX OUTPUT SIZE no more than {char_limit} characters."
|
371 |
|
372 |
# OpenAI API 요청 포맷 사용
|
373 |
-
response = client.responses.create(
|
374 |
model=openai_model,
|
375 |
input=[
|
376 |
{
|
@@ -528,9 +528,10 @@ def create_interface():
|
|
528 |
outputs=[output]
|
529 |
)
|
530 |
|
531 |
-
#
|
532 |
generate_text_button.click(
|
533 |
-
|
|
|
534 |
inputs=[output, happy_talk, compress, compression_level, poster, custom_base_prompt],
|
535 |
outputs=text_output
|
536 |
)
|
|
|
370 |
base_prompt += f" Compress the output to be concise while retaining key visual details. MAX OUTPUT SIZE no more than {char_limit} characters."
|
371 |
|
372 |
# OpenAI API 요청 포맷 사용
|
373 |
+
response = self.client.responses.create(
|
374 |
model=openai_model,
|
375 |
input=[
|
376 |
{
|
|
|
528 |
outputs=[output]
|
529 |
)
|
530 |
|
531 |
+
# 함수 호출 시 파라미터 수정
|
532 |
generate_text_button.click(
|
533 |
+
lambda input_text, happy_talk, compress, compression_level, poster, custom_base_prompt:
|
534 |
+
openai_node.generate(input_text, happy_talk, compress, compression_level, poster, custom_base_prompt),
|
535 |
inputs=[output, happy_talk, compress, compression_level, poster, custom_base_prompt],
|
536 |
outputs=text_output
|
537 |
)
|