Update space
Browse files
askme.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
examples = [
|
| 13 |
+
["์ค๋ ๋ ์จ ์ด๋?"],
|
| 14 |
+
["์ธ๊ณต์ง๋ฅ์ด ๋ญ์ผ?"]
|
| 15 |
+
]
|
| 16 |
+
)
|
| 17 |
+
demo.launch(share = True)
|