Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ example_questions = [
|
|
36 |
வேதம் உரைத்தானும் வேதா விளங்கிட"""
|
37 |
]
|
38 |
|
39 |
-
|
40 |
chatbot_service = ChatbotService()
|
41 |
|
42 |
|
@@ -45,7 +45,7 @@ with gr.Blocks() as demo:
|
|
45 |
with gr.Row():
|
46 |
msg = gr.Textbox(placeholder="Type your message here...", label="Venba first Stanza:")
|
47 |
run = gr.Button("Run")
|
48 |
-
examples_dropdown = gr.Dropdown(choices=example_questions, label="Select an example prompt")
|
49 |
examples_dropdown.change(fn=lambda x: x, inputs=examples_dropdown, outputs=msg)
|
50 |
|
51 |
clear = gr.Button("Clear")
|
|
|
36 |
வேதம் உரைத்தானும் வேதா விளங்கிட"""
|
37 |
]
|
38 |
|
39 |
+
default_example = example_questions[3]
|
40 |
chatbot_service = ChatbotService()
|
41 |
|
42 |
|
|
|
45 |
with gr.Row():
|
46 |
msg = gr.Textbox(placeholder="Type your message here...", label="Venba first Stanza:")
|
47 |
run = gr.Button("Run")
|
48 |
+
examples_dropdown = gr.Dropdown(choices=example_questions, value=default_example, label="Select an example prompt")
|
49 |
examples_dropdown.change(fn=lambda x: x, inputs=examples_dropdown, outputs=msg)
|
50 |
|
51 |
clear = gr.Button("Clear")
|