joonion commited on
Commit
e665517
Β·
1 Parent(s): 75e3aaf

Modified app.py

Browse files
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> <br/> <img src=https://ppss.kr/wp-content/uploads/2016/10/2-7.jpg>",
14
+ examples=[
15
+ ["였늘 날씨 μ–΄λ•Œ?"],
16
+ ["인곡지λŠ₯이 뭐야?"],
17
+ ["νŒŒμ΄μ¬μ€ μ–΄λ–€ μ–Έμ–΄μ•Ό?"],
18
+ ["κ·Έλƒ₯ μ•„λ¬΄κ±°λ‚˜ 물어봐"]
19
+ ]
20
+ )
21
+ demo.launch(share=True)