Update app.py
Browse files
app.py
CHANGED
@@ -107,6 +107,10 @@ additional_inputs = [
|
|
107 |
]
|
108 |
|
109 |
|
|
|
|
|
|
|
|
|
110 |
# Create the Gradio interface
|
111 |
with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
112 |
with gr.Tab("Indexing"):
|
@@ -121,6 +125,7 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
|
121 |
gr.ChatInterface(
|
122 |
fn=generate_response,
|
123 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
|
|
124 |
additional_inputs=additional_inputs,
|
125 |
)
|
126 |
|
|
|
107 |
]
|
108 |
|
109 |
|
110 |
+
examples = [[What is Transformer],
|
111 |
+
[What is Attention],
|
112 |
+
]
|
113 |
+
|
114 |
# Create the Gradio interface
|
115 |
with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
116 |
with gr.Tab("Indexing"):
|
|
|
125 |
gr.ChatInterface(
|
126 |
fn=generate_response,
|
127 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
128 |
+
examples=examples,
|
129 |
additional_inputs=additional_inputs,
|
130 |
)
|
131 |
|