| 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://item.kakaocdn.net/do/6b1f24ac76c95d91694c6acb99813fccf43ad912ad8dd55b04db6a64cddaf76d" |
| alt="์ด๋ฏธ์ง" width="200"> |
| """, |
| examples=[ |
| ["์ค๋ ๋ ์จ ์ด๋?"], |
| ["์ธ๊ณต์ง๋ฅ์ด ๋ญ์ผ?"], |
| ["ํ์ด์ฌ์ ์ด๋ค ์ธ์ด์ผ?"], |
| ["๊ทธ๋ฅ ์๋ฌด๊ฑฐ๋ ๋ฌผ์ด๋ด"] |
| ] |
| ) |
|
|
| demo.launch(share=True) |
|
|