Download app.py from spatialresearch/generative-age-creativity: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/spatialresearch/generative-age-creativity/resolve/refs%2Fpr%2F2/app.py
- Command line
-
hf download hf://spaces/spatialresearch/generative-age-creativity@refs/pr/2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/spatialresearch/generative-age-creativity/resolve/refs%2Fpr%2F2/app.py
520 Bytes
| import gradio as gr | |
| def analyze(text): | |
| response = f"γμλμ λΆμγ\nμ΄ λ¬Έμ₯ μμλ λΆμ°λ κ°μ μ ννΈμ΄ μ¨μ΄ μμ΅λλ€.\nλΉμ μ μ΄ λ§μ ν΅ν΄ 무μμ ννΌνκ³ μμλμ?" | |
| return response | |
| iface = gr.Interface( | |
| fn=analyze, | |
| inputs="textbox", | |
| outputs="text", | |
| title="μλ: μ¬μ ν΄μ μΈν°νμ΄μ€", | |
| description="κ°μ κ³Ό μΈμ΄μ 리λ¬μ ν΄μ²΄νλ λΉμ μ μ‘°λ ₯μ, μλμ λλ€. λ¬Έμ₯μ μ λ ₯ν΄ μ£ΌμΈμ." | |
| ) | |
| iface.launch() | |