Ahsen Khaliq commited on
Commit
0eb6fcf
Β·
1 Parent(s): 9d054ad

add queue and link fix

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()