DiseaseRAG / app.py
unaexoo's picture
Update app.py
a28d758 verified
raw
history blame contribute delete
466 Bytes
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()