Spaces:
Sleeping
Sleeping
Seungwoo hong
๐ fix: Update Dockerfile to use python:3.10-slim instead of python:3.9 and add comments about Docker execution
30d7adf
from fastapi import FastAPI | |
import autorag # AutoRAG ํจํค์ง๋ฅผ import ํฉ๋๋ค. ์ค์ ํจํค์ง ์ด๋ฆ์ ๋ค๋ฅผ ์ ์์ต๋๋ค. | |
app = FastAPI() | |
def greet_json(): | |
# AutoRAG๋ฅผ ์คํํ๊ณ ๋ฒ์ ์ ์ถ๋ ฅ | |
autorag_version = autorag.__version__ # AutoRAG์ ๋ฒ์ ์ ๊ฐ์ ธ์ต๋๋ค. | |
# ์ฌ๊ธฐ์ AutoRAG๋ฅผ ์คํํ๋ ์ฝ๋๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. | |
# ์: result = autorag.run_some_function() | |
return { | |
"Hello": "AutoRAG World!", | |
"AutoRAG Version": autorag_version, | |
# "AutoRAG Result": result # AutoRAG ์คํ ๊ฒฐ๊ณผ๋ฅผ ํฌํจํ ์ ์์ต๋๋ค. | |
} |