kim368882 commited on
Commit
31aba0f
โ€ข
1 Parent(s): d98fe87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -254,4 +254,12 @@ with gr.Blocks() as demo:
254
  analyze_button = gr.Button("๋ถ„์„ํ•˜๊ธฐ")
255
  analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=character_output)
256
 
 
 
 
 
 
 
 
 
257
  demo.launch()
 
254
  analyze_button = gr.Button("๋ถ„์„ํ•˜๊ธฐ")
255
  analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=character_output)
256
 
257
+
258
+ with gr.Tab("์œ ๋ช…์ธ"):
259
+ celebrity_input = gr.Textbox(label="์œ ๋ช…์ธ ์ด๋ฆ„", placeholder="์—ฌ๊ธฐ์— ์œ ๋ช…์ธ์˜ ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜์„ธ์š”")
260
+ celebrity_output = gr.HTML() # ์œ ๋ช…์ธ ๋ถ„์„ ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅํ•  HTML ์ปดํฌ๋„ŒํŠธ
261
+ celebrity_analyze_button = gr.Button("๋ถ„์„ํ•˜๊ธฐ")
262
+ celebrity_analyze_button.click(fn=analyze_celebrity, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=celebrity_output)
263
+
264
+
265
  demo.launch()