File size: 736 Bytes
75e3aaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr

def answer_question(question):
    # 여기에 μ§ˆλ¬Έμ— λŒ€ν•œ λ‹΅λ³€ λ‘œμ§μ„ κ΅¬ν˜„ν•©λ‹ˆλ‹€.
    # μ˜ˆμ‹œλ‘œ κ°„λ‹¨ν•œ 닡변을 λ°˜ν™˜ν•©λ‹ˆλ‹€.
    return f"λͺ°λΌμš”"

demo = gr.Interface(
    fn=answer_question,
    inputs="text",
    outputs="text",
    title="무엇이든 λ¬Όμ–΄λ³΄μ†Œ, λ‚΄κ°€ μ•„λ‚˜?",
    description="μ§ˆλ¬Έμ„ μž…λ ₯ν•˜λ©΄ 닡변을 μ œκ³΅ν•  것 κ°™λ‹ˆ? <b><span style=\"color:red;\">γ…‹γ…‹γ…‹</span></b> <br/> <img src=https://ppss.kr/wp-content/uploads/2016/10/2-7.jpg>",
    examples=[
        ["였늘 날씨 μ–΄λ•Œ?"],    
        ["인곡지λŠ₯이 뭐야?"],
        ["νŒŒμ΄μ¬μ€ μ–΄λ–€ μ–Έμ–΄μ•Ό?"],
        ["κ·Έλƒ₯ μ•„λ¬΄κ±°λ‚˜ 물어봐"]
    ]
)
demo.launch(share=True)