File size: 466 Bytes
5cd26f2
 
 
 
a28d758
5cd26f2
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
import disease  

def user_greeting(question):
    response = disease.fun_invoke(question)
    return response

app = gr.Interface(
    fn=user_greeting,  # ํ•จ์ˆ˜ ์—ฐ๊ฒฐ
    inputs="text",  # ์ž…๋ ฅ ํƒ€์ž…
    outputs="text",  # ์ถœ๋ ฅ ํƒ€์ž…
    title="์งˆ๋ณ‘ ์ง„๋‹จ ์–ด์‹œ์Šคํ„ดํŠธ",  # ์ œ๋ชฉ ์„ค์ •
    description="์งˆ๋ฌธ์„ ์ž…๋ ฅํ•˜๋ฉด ๊ด€๋ จ๋œ ์งˆ๋ณ‘ ์ •๋ณด๋ฅผ ์•Œ๋ ค์ค๋‹ˆ๋‹ค.",  # ์„ค๋ช…
)

if __name__ == "__main__":
    app.launch()