kim368882 commited on
Commit
412d5ed
โ€ข
1 Parent(s): 74bdad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- celebrity_input = gr.Textbox(label="์œ ๋ช…์ธ ์ด๋ฆ„")
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