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