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) |