Unggi commited on
Commit
fb622a8
โ€ข
1 Parent(s): e556c82

add examples

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -94,7 +94,10 @@ def inference(prompt):
94
  demo = gr.Interface(
95
  fn=inference,
96
  inputs="text",
97
- outputs="text" #return ๊ฐ’
 
 
 
98
  ).launch() # launch(share=True)๋ฅผ ์„ค์ •ํ•˜๋ฉด ์™ธ๋ถ€์—์„œ ์ ‘์† ๊ฐ€๋Šฅํ•œ ๋งํฌ๊ฐ€ ์ƒ์„ฑ๋จ
99
 
100
  demo.launch()
 
94
  demo = gr.Interface(
95
  fn=inference,
96
  inputs="text",
97
+ outputs="text", #return ๊ฐ’
98
+ examples=[
99
+ "์ง€๋‚œํ•ด ๊ตญ๋‚ด ํด๋ž˜์‹๊ณ„ ์ตœ๊ณ  ์Šคํƒ€๋กœ ๋– ์˜ค๋ฅธ ํ”ผ์•„๋‹ˆ์ŠคํŠธ ์ž„์œค์ฐฌ์ด ๋ฏธ๊ตญ ๋ฐด ํด๋ผ์ด๋ฒˆ ๊ตญ์ œ์ฝฉ์ฟ ๋ฅด ๊ฒฐ์„ ์—์„œ ์—ฐ์ฃผํ•œ ๋ผํ๋งˆ๋‹ˆ๋…ธํ”„ ํ”ผ์•„๋…ธ ํ˜‘์ฃผ๊ณก ์ œ3๋ฒˆ ์˜์ƒ์ด ์œ ํŠœ๋ธŒ์—์„œ ์กฐํšŒ์ˆ˜ 1000๋งŒํšŒ๋ฅผ ๋„˜๊ฒผ๋‹ค. ๋ผํ๋งˆ๋‹ˆ๋…ธํ”„ 3๋ฒˆ ์—ฐ์ฃผ ์˜์ƒ ์ค‘ ๋‹จ์—ฐ ์ตœ๊ณ  ์กฐํšŒ์ˆ˜๋‹ค."
100
+ ]
101
  ).launch() # launch(share=True)๋ฅผ ์„ค์ •ํ•˜๋ฉด ์™ธ๋ถ€์—์„œ ์ ‘์† ๊ฐ€๋Šฅํ•œ ๋งํฌ๊ฐ€ ์ƒ์„ฑ๋จ
102
 
103
  demo.launch()