Spaces:
Running
Running
Update app.py
Browse files
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
|
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 |
|
|
|
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 |
|