Spaces:
Runtime error
Runtime error
Commit ·
57c4d96
1
Parent(s): ab45a0f
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,10 @@ example_instructions = [
|
|
| 24 |
"How can I see the pods in the 'testing' namespace?",
|
| 25 |
"What command should I use to get the list of containers?"
|
| 26 |
]
|
| 27 |
-
|
| 28 |
# Gradio Interface
|
|
|
|
|
|
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=translate_instruction,
|
| 31 |
inputs=[
|
|
@@ -33,7 +35,7 @@ iface = gr.Interface(
|
|
| 33 |
gr.inputs.Textbox(label="Enter Human Instruction")
|
| 34 |
],
|
| 35 |
outputs=gr.outputs.Textbox(label="Generated CLI Command"),
|
| 36 |
-
examples=
|
| 37 |
)
|
| 38 |
|
| 39 |
# Launch the Gradio app using Ngrok
|
|
|
|
| 24 |
"How can I see the pods in the 'testing' namespace?",
|
| 25 |
"What command should I use to get the list of containers?"
|
| 26 |
]
|
| 27 |
+
|
| 28 |
# Gradio Interface
|
| 29 |
+
examples_box = gr.outputs.State([example_instructions])
|
| 30 |
+
|
| 31 |
iface = gr.Interface(
|
| 32 |
fn=translate_instruction,
|
| 33 |
inputs=[
|
|
|
|
| 35 |
gr.inputs.Textbox(label="Enter Human Instruction")
|
| 36 |
],
|
| 37 |
outputs=gr.outputs.Textbox(label="Generated CLI Command"),
|
| 38 |
+
examples=examples_box
|
| 39 |
)
|
| 40 |
|
| 41 |
# Launch the Gradio app using Ngrok
|