ejschwartz commited on
Commit
91e7dfd
·
1 Parent(s): 28b893e
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -125,7 +125,8 @@ def infer(code):
125
 
126
  field_output = fields[0] + ":" + field_output
127
  var_output = first_var + ":" + var_output
128
- return var_output, field_output, varstring
 
129
 
130
 
131
  demo = gr.Interface(
@@ -137,6 +138,7 @@ demo = gr.Interface(
137
  gr.Text(label="Var Decoder Output"),
138
  gr.Text(label="Field Decoder Output"),
139
  gr.Text(label="Generated Variable List"),
 
140
  ],
141
  description=frontmatter.load("README.md").content,
142
  examples=examples,
 
125
 
126
  field_output = fields[0] + ":" + field_output
127
  var_output = first_var + ":" + var_output
128
+ fieldstring = ", ".join(fields)
129
+ return var_output, field_output, varstring, fieldstring
130
 
131
 
132
  demo = gr.Interface(
 
138
  gr.Text(label="Var Decoder Output"),
139
  gr.Text(label="Field Decoder Output"),
140
  gr.Text(label="Generated Variable List"),
141
+ gr.Text(label="Generated Field Access List"),
142
  ],
143
  description=frontmatter.load("README.md").content,
144
  examples=examples,