seriouspark commited on
Commit
e8ccc6c
ยท
1 Parent(s): 9965e47

add share parameter and put interface

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -3,5 +3,9 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello" + name + '!!'
5
 
6
- iface = gr.Interface(fn=greet, inputs = 'text', outputs = 'text')
7
- iface.launch()
 
 
 
 
 
3
  def greet(name):
4
  return "Hello" + name + '!!'
5
 
6
+ iface = gr.Interface(
7
+
8
+ fn=greet,
9
+ inputs = gr.inputs.Textbox(lines=2, placeholder= '๋‹น์‹ ์˜ ๊ธ€์„ ๋„ฃ์–ด๋ณด์„ธ์š”',
10
+ outputs = gr.outputs.Textbox(lines=10, placeholder = '๊ธ€ ์†์— ์žˆ๋Š” ๋ฌด์˜์‹์„ ์ฐพ์•„๋“œ๋ฆฝ๋‹ˆ๋‹ค.')
11
+ iface.launch(share =True)