Add application file
Browse files
askme.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def answer_question(question):
|
| 4 |
+
return f"๋ชฐ!~๋ผ~"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
+
fn=answer_question,
|
| 8 |
+
inputs="text",
|
| 9 |
+
outputs="text",
|
| 10 |
+
title='๋ฌด์์ด๋ ๋ฌผ์ด๋ณด์, ๋ด๊ฐ ์๋',
|
| 11 |
+
description="""
|
| 12 |
+
์ง๋ฌธ์ ์
๋ ฅํ๋ฉด ๋ต๋ณ์ ์ ๊ณตํ ๊ฒ ๊ฐ๋? <b><span style="color:red;">ใ
ใ
ใ
</span></b><br>
|
| 13 |
+
<img src="https://item.kakaocdn.net/do/6b1f24ac76c95d91694c6acb99813fccf43ad912ad8dd55b04db6a64cddaf76d"
|
| 14 |
+
alt="์ด๋ฏธ์ง" width="200">
|
| 15 |
+
""",
|
| 16 |
+
examples=[
|
| 17 |
+
["์ค๋ ๋ ์จ ์ด๋?"],
|
| 18 |
+
["์ธ๊ณต์ง๋ฅ์ด ๋ญ์ผ?"],
|
| 19 |
+
["ํ์ด์ฌ์ ์ด๋ค ์ธ์ด์ผ?"],
|
| 20 |
+
["๊ทธ๋ฅ ์๋ฌด๊ฑฐ๋ ๋ฌผ์ด๋ด"]
|
| 21 |
+
]
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
demo.launch(share=True)
|