Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -255,11 +255,10 @@ with gr.Blocks() as demo:
|
|
255 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API ํค", placeholder="์ฌ๊ธฐ์ OpenAI API ํค๋ฅผ ์
๋ ฅํ์ธ์")
|
256 |
character_output = gr.Textbox(label="์ฑ๊ฒฉ๊ณผ ํน์ง")
|
257 |
|
258 |
-
|
259 |
-
celebrity_output = gr.HTML() # ์ ๋ช
์ธ ๋ถ์ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ HTML ์ปดํฌ๋ํธ
|
260 |
|
261 |
analyze_button = gr.Button("๋ถ์ํ๊ธฐ")
|
262 |
-
analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=character_output)
|
263 |
|
264 |
# ์ ๋ช
์ธ ๋ถ์์ ๊ฐ์ ํญ์ ์ถ๊ฐ
|
265 |
|
|
|
255 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API ํค", placeholder="์ฌ๊ธฐ์ OpenAI API ํค๋ฅผ ์
๋ ฅํ์ธ์")
|
256 |
character_output = gr.Textbox(label="์ฑ๊ฒฉ๊ณผ ํน์ง")
|
257 |
|
258 |
+
celebrity_output = gr.Textbox(label="์ ๋ช
์ธ ์ด๋ฆ")
|
|
|
259 |
|
260 |
analyze_button = gr.Button("๋ถ์ํ๊ธฐ")
|
261 |
+
analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=[character_output, celebrity_output])
|
262 |
|
263 |
# ์ ๋ช
์ธ ๋ถ์์ ๊ฐ์ ํญ์ ์ถ๊ฐ
|
264 |
|