TroglodyteDerivations commited on
Commit
4cdb8c0
1 Parent(s): 5a3b41b

Updated lines 47 & 48 with modified attribute ‘components' instead of orginal instantation based on attribute ‘outputs'

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def vector_addition(v1, v2):
44
  iface = gr.Interface(vector_addition,
45
  [gr.components.Textbox(lines=2, label="Vector 1"),
46
  gr.components.Textbox(lines=2, label="Vector 2")],
47
- [gr.outputs.Textbox(label="Vector 3"),
48
- gr.outputs.Image(label="Vector Addition Plot")])
49
 
50
  iface.launch()
 
44
  iface = gr.Interface(vector_addition,
45
  [gr.components.Textbox(lines=2, label="Vector 1"),
46
  gr.components.Textbox(lines=2, label="Vector 2")],
47
+ [gr.components.Textbox(label="Vector 3"),
48
+ gr.components.Image(label="Vector Addition Plot")])
49
 
50
  iface.launch()