Spaces:
Build error
Build error
import gradio as gr | |
from transformers import pipeline | |
import os | |
theme = "darkgrass" | |
title = "GPT-NeoX(Korean) Demo" | |
model_name = "EleutherAI/gpt-neox-ko-1.3b" | |
description = "GPT-NeoX νκ΅μ΄ λͺ¨λΈμ μμ°νλ λ°λͺ¨νμ΄μ§ μ λλ€." | |
# article = "<p style='text-align: center'><a href='https://github.com/kingoflolz/mesh-transformer-jax' target='_blank'>GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model</a></p>" | |
examples = [ | |
["μΈκ°μ²λΌ μκ°νκ³ , νλνλ 'μ§λ₯'μ ν΅ν΄"], | |
["λνλ―Όκ΅μ 2040λ μ λ§μ "], | |
["2040λ λ―Έκ΅μ, "] | |
] | |
generator = pipeline('text-generation', model=model_name, use_auth_token=os.environ['TOKEN']) | |
gr.Interface.from_pipeline(generator).launch() | |
# print(generated) # print: μΈκ°μ²λΌ μκ°νκ³ , νλνλ 'μ§λ₯'μ ν΅ν΄ μΈλ₯κ° μ΄μ κΉμ§ νμ§ λͺ»νλ λ¬Έμ μ ν΄λ΅μ μ°Ύμ μ μμ κ²μ΄λ€. κ³ΌνκΈ°μ μ΄ κ³ λλ‘ λ°λ¬ν 21μΈκΈ°λ₯Ό μ΄μκ° μ°λ¦¬ μμ΄λ€μκ² κ°μ₯ νμν κ²μ μ¬κ³ λ ₯ νλ ¨μ΄λ€. μ¬κ³ λ ₯ νλ ¨μ ν΅ν΄, μΈμ | |