Update app.py
Browse files
app.py
CHANGED
|
@@ -21,20 +21,5 @@ demo = gr.Interface(
|
|
| 21 |
outputs = "text",
|
| 22 |
title = "Web(GPT)3 Daily")
|
| 23 |
|
| 24 |
-
blocks = gr.Blocks()
|
| 25 |
-
|
| 26 |
-
with blocks as demo:
|
| 27 |
-
subject = gr.Textbox(placeholder="subject")
|
| 28 |
-
verb = gr.Radio(["ate", "loved", "hated"])
|
| 29 |
-
object = gr.Textbox(placeholder="object")
|
| 30 |
-
|
| 31 |
-
with gr.Row():
|
| 32 |
-
btn = gr.Button("Create sentence.")
|
| 33 |
-
reverse_btn = gr.Button("Reverse sentence.")
|
| 34 |
-
foo_bar_btn = gr.Button("Append foo")
|
| 35 |
-
reverse_then_to_the_server_btn = gr.Button(
|
| 36 |
-
"Reverse sentence and send to server."
|
| 37 |
-
)
|
| 38 |
-
|
| 39 |
demo.launch()
|
| 40 |
iface.launch(inline=True)
|
|
|
|
| 21 |
outputs = "text",
|
| 22 |
title = "Web(GPT)3 Daily")
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
demo.launch()
|
| 25 |
iface.launch(inline=True)
|