aliabd HF Staff commited on
Commit
8fe981a
·
1 Parent(s): dff7785

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,10 +11,10 @@ def complete_with_gpt(text):
11
  # start a block
12
  with gr.Blocks() as demo:
13
  # define the UI: one textbox, and a button
14
- textbox = gr.Textbox(placeholder="Type here and press enter...", lines=4)
15
  btn = gr.Button("Autocomplete")
16
 
17
- # define what will run when the button is clicked (or user presses enter)
18
  # the textbox is used as both an input and an output
19
  btn.click(fn=complete_with_gpt, inputs=textbox, outputs=textbox)
20
 
 
11
  # start a block
12
  with gr.Blocks() as demo:
13
  # define the UI: one textbox, and a button
14
+ textbox = gr.Textbox(placeholder="Type here...", lines=4)
15
  btn = gr.Button("Autocomplete")
16
 
17
+ # define what will run when the button is clicked
18
  # the textbox is used as both an input and an output
19
  btn.click(fn=complete_with_gpt, inputs=textbox, outputs=textbox)
20