Ahsen Khaliq
commited on
Commit
Β·
0eb6fcf
1
Parent(s):
9d054ad
add queue and link fix
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ _ = model.eval()
|
|
| 16 |
|
| 17 |
title = "KoGPT"
|
| 18 |
description = "Gradio demo for KoGPT(Korean Generative Pre-trained Transformer). To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
| 19 |
-
article = "<p style='text-align: center'><a href='https://github.com/kakaobrain/kogpt'>KoGPT: KakaoBrain Korean(hangul) Generative Pre-trained Transformer</a> | <a href='https://huggingface.co/kakaobrain/kogpt'>Huggingface Model</a></p>"
|
| 20 |
examples=[['μΈκ°μ²λΌ μκ°νκ³ , νλνλ \'μ§λ₯\'μ ν΅ν΄ μΈλ₯κ° μ΄μ κΉμ§ νμ§ λͺ»νλ']]
|
| 21 |
def greet(text):
|
| 22 |
prompt = text
|
|
@@ -27,5 +27,5 @@ def greet(text):
|
|
| 27 |
|
| 28 |
return generated
|
| 29 |
|
| 30 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title=title, description=description, article=article, examples=examples)
|
| 31 |
iface.launch()
|
|
|
|
| 16 |
|
| 17 |
title = "KoGPT"
|
| 18 |
description = "Gradio demo for KoGPT(Korean Generative Pre-trained Transformer). To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
| 19 |
+
article = "<p style='text-align: center'><a href='https://github.com/kakaobrain/kogpt' target='_blank'>KoGPT: KakaoBrain Korean(hangul) Generative Pre-trained Transformer</a> | <a href='https://huggingface.co/kakaobrain/kogpt' target='_blank'>Huggingface Model</a></p>"
|
| 20 |
examples=[['μΈκ°μ²λΌ μκ°νκ³ , νλνλ \'μ§λ₯\'μ ν΅ν΄ μΈλ₯κ° μ΄μ κΉμ§ νμ§ λͺ»νλ']]
|
| 21 |
def greet(text):
|
| 22 |
prompt = text
|
|
|
|
| 27 |
|
| 28 |
return generated
|
| 29 |
|
| 30 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title=title, description=description, article=article, examples=examples,enable_queue=True)
|
| 31 |
iface.launch()
|