Update app.py
Browse files
app.py
CHANGED
@@ -19,11 +19,19 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
19 |
label="API key",
|
20 |
scale=4,
|
21 |
)
|
22 |
-
gr.
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
gr.Dropdown(label="Choose provider")
|
|
|
27 |
|
28 |
gr.ChatInterface(random_response,
|
29 |
multimodal=True,
|
@@ -38,6 +46,9 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
38 |
title="Chat interface test",
|
39 |
save_history=True,
|
40 |
)
|
|
|
|
|
|
|
41 |
with gr.Accordion(
|
42 |
"Settings",
|
43 |
open=False,
|
@@ -60,6 +71,9 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
60 |
gr.Checkbox(
|
61 |
label="Enable output stream"
|
62 |
)
|
|
|
|
|
|
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
demo.launch()
|
|
|
19 |
label="API key",
|
20 |
scale=4,
|
21 |
)
|
22 |
+
with gr.Column():
|
23 |
+
gr.Button(
|
24 |
+
value="Apply",
|
25 |
+
scale=1,
|
26 |
+
)
|
27 |
+
gr.Button(
|
28 |
+
value="Reset",
|
29 |
+
scale=1,
|
30 |
+
)
|
31 |
+
gr.Markdown("API key State: False")
|
32 |
+
|
33 |
gr.Dropdown(label="Choose provider")
|
34 |
+
gr.Markdown("Provider State: False")
|
35 |
|
36 |
gr.ChatInterface(random_response,
|
37 |
multimodal=True,
|
|
|
46 |
title="Chat interface test",
|
47 |
save_history=True,
|
48 |
)
|
49 |
+
gr.Markdown("Token in output: False")
|
50 |
+
gr.Markdown("Token in input: False")
|
51 |
+
|
52 |
with gr.Accordion(
|
53 |
"Settings",
|
54 |
open=False,
|
|
|
71 |
gr.Checkbox(
|
72 |
label="Enable output stream"
|
73 |
)
|
74 |
+
gr.Checkbox(
|
75 |
+
label="Grounding with Google Search"
|
76 |
+
)
|
77 |
|
78 |
if __name__ == "__main__":
|
79 |
demo.launch()
|