-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ [i18n-KO] Translated
package_reference/webhooks_server.md
to Koreโฆ
โฆan (#2344) * docs: ko: package_reference/webhooks_server * feat: nmt draft * fix: manual edits
- Loading branch information
Showing
2 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!--โ ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be | ||
rendered properly in your Markdown viewer. | ||
--> | ||
|
||
# ์นํ ์๋ฒ[[webhooks-server]] | ||
|
||
์นํ ์ MLOps ๊ด๋ จ ๊ธฐ๋ฅ์ ๊ธฐ๋ฐ์ด ๋ฉ๋๋ค. ์ด๋ฅผ ํตํด ํน์ ์ ์ฅ์์ ์๋ก์ด ๋ณ๊ฒฝ ์ฌํญ์ ์์ ํ๊ฑฐ๋, ๊ด์ฌ ์๋ ํน์ ์ฌ์ฉ์/์กฐ์ง์ ์ํ ๋ชจ๋ ์ ์ฅ์์ ๋ณ๊ฒฝ ์ฌํญ์ ๋ฐ์๋ณผ ์ ์์ต๋๋ค. | ||
Huggingface Hub์ ์นํ ์ ๋ํด ๋ ์์ธํ ์์๋ณด๋ ค๋ฉด ์ด [๊ฐ์ด๋](https://huggingface.co/docs/hub/webhooks)๋ฅผ ์ฝ์ด๋ณด์ธ์. | ||
|
||
<Tip> | ||
|
||
์นํ ์๋ฒ๋ฅผ ์ค์ ํ๊ณ Space๋ก ๋ฐฐํฌํ๋ ๋ฐฉ๋ฒ์ ์ด ๋จ๊ณ๋ณ [๊ฐ์ด๋](../guides/webhooks_server)๋ฅผ ํ์ธํ์ธ์. | ||
|
||
</Tip> | ||
|
||
<Tip warning={true}> | ||
|
||
์ด ๊ธฐ๋ฅ์ ์คํ์ ์ธ ๊ธฐ๋ฅ์ ๋๋ค. ๋ณธ API๋ ํ์ฌ ๊ฐ์ ์์ ์ค์ด๋ฉฐ, ํฅํ ์ฌ์ ํต์ง ์์ด ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ์ด ๋์ ๋ ์ ์์์ ์๋ฏธํฉ๋๋ค. `requirements`์์ `huggingface_hub`์ ๋ฒ์ ์ ๊ณ ์ ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. ์ฐธ๊ณ ๋ก ์คํ์ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ฉด ๊ฒฝ๊ณ ๊ฐ ํธ๋ฆฌ๊ฑฐ ๋ฉ๋๋ค. ์ด ๊ฒฝ๊ณ ํธ๋ฆฌ๊ฑฐ๋ฅผ ๋นํ์ฑํ ์ํค๊ธธ ์ํ๋ค๋ฉด ํ๊ฒฝ๋ณ์ `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1`๋ฅผ ์ค์ ํ์ธ์. | ||
|
||
</Tip> | ||
|
||
## ์๋ฒ[[server]] | ||
์ฌ๊ธฐ์ ์๋ฒ๋ ํ๋์ [Gradio](https://gradio.app/) ์ฑ์ ์๋ฏธํฉ๋๋ค. Gradio์๋ ์ฌ์ฉ์ ๋๋ ์ฌ์ฉ์์๊ฒ ์ง์นจ์ ํ์ํ๋ UI์ ์นํ ์ ์์ ํ๊ธฐ ์ํ API๊ฐ ์์ต๋๋ค. ์นํ ์๋ํฌ์ธํธ๋ฅผ ๊ตฌํํ๋ ๊ฒ์ ํจ์์ ๋ฐ์ฝ๋ ์ดํฐ๋ฅผ ์ถ๊ฐํ๋ ๊ฒ๋งํผ ๊ฐ๋จํฉ๋๋ค. ์๋ฒ๋ฅผ Space์ ๋ฐฐํฌํ๊ธฐ ์ ์ Gradio ํฐ๋์ ์ฌ์ฉํ์ฌ ์นํ ์ ๋จธ์ ์ผ๋ก ๋ฆฌ๋๋ ์ ํ์ฌ ๋๋ฒ๊น ํ ์ ์์ต๋๋ค. | ||
|
||
### WebhooksServer[[huggingface_hub.WebhooksServer]] | ||
|
||
[[autodoc]] huggingface_hub.WebhooksServer | ||
|
||
### @webhook_endpoint[[huggingface_hub.webhook_endpoint]] | ||
|
||
[[autodoc]] huggingface_hub.webhook_endpoint | ||
|
||
## ํ์ด๋ก๋[[huggingface_hub.WebhookPayload]] | ||
|
||
[`WebhookPayload`]๋ ์นํ ์ ํ์ด๋ก๋๋ฅผ ํฌํจํ๋ ๊ธฐ๋ณธ ๋ฐ์ดํฐ ๊ตฌ์กฐ์ ๋๋ค. ์ด๊ฒ์ `pydantic` ํด๋์ค๋ก์ FastAPI์์ ๋งค์ฐ ์ฝ๊ฒ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ฆ WebhookPayload๋ฅผ ์นํํฌ ์๋ํฌ์ธํธ์ ๋งค๊ฐ๋ณ์๋ก ์ ๋ฌํ๋ฉด ์๋์ผ๋ก ์ ํจ์ฑ์ด ๊ฒ์ฌ๋๊ณ ํ์ด์ฌ ๊ฐ์ฒด๋ก ํ์ฑ๋ฉ๋๋ค. | ||
|
||
์นํ ํ์ด๋ก๋์ ๋ํ ์์ธํ ์ฌํญ์ ์ด [๊ฐ์ด๋](https://huggingface.co/docs/hub/webhooks#webhook-payloads)๋ฅผ ์ฐธ๊ณ ํ์ธ์. | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayload | ||
|
||
### WebhookPayload[[huggingface_hub.WebhookPayload]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayload | ||
|
||
### WebhookPayloadComment[[huggingface_hub.WebhookPayloadComment]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadComment | ||
|
||
### WebhookPayloadDiscussion[[huggingface_hub.WebhookPayloadDiscussion]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadDiscussion | ||
|
||
### WebhookPayloadDiscussionChanges[[huggingface_hub.WebhookPayloadDiscussionChanges]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadDiscussionChanges | ||
|
||
### WebhookPayloadEvent[[huggingface_hub.WebhookPayloadEvent]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadEvent | ||
|
||
### WebhookPayloadMovedTo[[huggingface_hub.WebhookPayloadMovedTo]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadMovedTo | ||
|
||
### WebhookPayloadRepo[[huggingface_hub.WebhookPayloadRepo]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadRepo | ||
|
||
### WebhookPayloadUrl[[huggingface_hub.WebhookPayloadUrl]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadUrl | ||
|
||
### WebhookPayloadWebhook[[huggingface_hub.WebhookPayloadWebhook]] | ||
|
||
[[autodoc]] huggingface_hub.WebhookPayloadWebhook |