Asna-DifiNative commited on
Commit
23bb15d
·
1 Parent(s): 2df15d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -24,12 +24,16 @@ example_instructions = [
24
  "What command should I use to get the list of containers?"
25
  ]
26
 
 
27
  # Gradio Interface
28
  iface = gr.Interface(
29
  fn=translate_instruction,
30
- inputs=gr.inputs.Textbox(label="Enter Human Instruction"),
 
 
 
31
  outputs=gr.outputs.Textbox(label="Generated CLI Command"),
32
- examples=example_instructions
33
  )
34
 
35
  # Launch the Gradio app using Ngrok
 
24
  "What command should I use to get the list of containers?"
25
  ]
26
 
27
+
28
  # Gradio Interface
29
  iface = gr.Interface(
30
  fn=translate_instruction,
31
+ inputs=[
32
+ gr.inputs.Textbox(label="Enter Context"),
33
+ gr.inputs.Textbox(label="Enter Human Instruction")
34
+ ],
35
  outputs=gr.outputs.Textbox(label="Generated CLI Command"),
36
+ examples=[[context, instruction] for instruction in example_instructions]
37
  )
38
 
39
  # Launch the Gradio app using Ngrok