hyeonsoo27 commited on
Commit
41831af
Β·
1 Parent(s): 6e70082
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def answer_question(question):
4
+ # 여기에 μ§ˆλ¬Έμ— λŒ€ν•œ λ‹΅λ³€ λ‘œμ§μ„ κ΅¬ν˜„ν•©λ‹ˆλ‹€.
5
+ # μ˜ˆμ‹œλ‘œ κ°„λ‹¨ν•œ 닡변을 λ°˜ν™˜ν•©λ‹ˆλ‹€.
6
+ return f"λͺ°λΌμš”"
7
+
8
+ demo = gr.Interface(
9
+ fn = answer_question,
10
+ inputs = "text",
11
+ outputs = "text",
12
+ title="무엇이든 λ¬Όμ–΄λ³΄μ†Œ, λ‚΄κ°€ 아냐?",
13
+ description="μ§ˆλ¬Έμ„ μž…λ ₯ν•˜λ©΄ 닡변을 μ œκ³΅ν•  것 κ°™λ‹ˆ? <b>span style=\"color:red,\">γ…‹γ…‹γ…‹</span></b>",
14
+ examples=[
15
+ ["였늘 날씨 μ–΄λ–„?"],
16
+ ["인곡지λŠ₯이 뭐야?"],
17
+ ["νŒŒμ΄μ¬μ€ μ–΄λ˜ μ–Έμ–΄μ•Ό?"],
18
+ ["κ·Έλƒ₯ μ•„λ¬΄κ±°λ‚˜ 물어봐"]
19
+ ]
20
+ )
21
+ demo.launch(share=True)