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)