Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,24 @@ def CustomChatGPT(user_input):
|
|
17 |
|
18 |
demo = gr.Interface(
|
19 |
fn=CustomChatGPT,
|
20 |
-
theme=gr.themes.Glass
|
21 |
inputs = "text",
|
22 |
outputs = "text",
|
23 |
title = "Web(GPT)3 Daily")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
demo.launch()
|
26 |
iface.launch(inline=True)
|
|
|
17 |
|
18 |
demo = gr.Interface(
|
19 |
fn=CustomChatGPT,
|
|
|
20 |
inputs = "text",
|
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)
|