Spaces:
Sleeping
Sleeping
Download code_examples.json from devorah-ai-2016/EasyAIGlossary: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/spaces/devorah-ai-2016/EasyAIGlossary/resolve/main/code_examples.json
- Command line
-
hf download hf://spaces/devorah-ai-2016/EasyAIGlossary/code_examples.json
-
curl -L -o code_examples.json https://huggingface.co/spaces/devorah-ai-2016/EasyAIGlossary/resolve/main/code_examples.json
1.74 kB
| [ | |
| { | |
| "title": "Streamlit μ λͺ© λ§λ€κΈ°", | |
| "level": "μ λ¬Έ", | |
| "code": "import streamlit as st\n\nst.title(\"AI νμμ©μ΄ 120μ \")\nst.write(\"AIλ₯Ό μ½κ² λ°°μ°λ μ©μ΄μ¬μ μ λλ€.\")", | |
| "explain": [ | |
| "import streamlit as st : Streamlit λꡬλ₯Ό κ°μ Έμμ stλΌλ λ³λͺ μΌλ‘ μ¬μ©ν©λλ€.", | |
| "st.title(...) : νλ©΄μ ν° μ λͺ©μ νμν©λλ€.", | |
| "st.write(...) : νλ©΄μ μΌλ° λ¬Έμ₯μ νμν©λλ€." | |
| ], | |
| "summary": "μ΄ μ½λλ μΉμ± νλ©΄μ μ λͺ©κ³Ό μ€λͺ λ¬Έμ 보μ¬μ€λλ€." | |
| }, | |
| { | |
| "title": "JSON νμΌ λΆλ¬μ€κΈ°", | |
| "level": "μ λ¬Έ", | |
| "code": "import json\n\nwith open(\"terms.json\", \"r\", encoding=\"utf-8\") as f:\n terms = json.load(f)", | |
| "explain": [ | |
| "import json : JSON νμΌμ μ½κΈ° μν λꡬλ₯Ό κ°μ Έμ΅λλ€.", | |
| "open(\"terms.json\") : terms.json νμΌμ μ½λλ€.", | |
| "encoding=\"utf-8\" : νκΈμ΄ κΉ¨μ§μ§ μλλ‘ μ€μ ν©λλ€.", | |
| "json.load(f) : JSON νμΌ λ΄μ©μ νμ΄μ¬ λ°μ΄ν°λ‘ λ°κΏλλ€." | |
| ], | |
| "summary": "μ΄ μ½λλ terms.jsonμ λ€μ΄ μλ μ©μ΄ λ°μ΄ν°λ₯Ό μ½μ΄μ΅λλ€." | |
| }, | |
| { | |
| "title": "κ²μμ°½ λ§λ€κΈ°", | |
| "level": "μ λ¬Έ", | |
| "code": "search = st.text_input(\"π μ©μ΄ κ²μ\", placeholder=\"μ: RAG, ν ν°, μ½λ\")", | |
| "explain": [ | |
| "st.text_input : μ¬μ©μκ° κΈμλ₯Ό μ λ ₯ν μ μλ κ²μμ°½μ λ§λλλ€.", | |
| "placeholder : μ λ ₯μ°½ μμ νλ¦¬κ² λ³΄μ΄λ μμ 문ꡬμ λλ€.", | |
| "search : μ¬μ©μκ° μ λ ₯ν κ²μμ΄κ° μ μ₯λλ λ³μμ λλ€." | |
| ], | |
| "summary": "μ΄ μ½λλ μ¬μ©μκ° μ©μ΄λ₯Ό κ²μν μ μλ μ λ ₯μ°½μ λ§λλλ€." | |
| } | |
| ] |