Spaces:
Runtime error
Runtime error
Update app.py
Browse filesCopy and paste error
app.py
CHANGED
|
@@ -471,4 +471,7 @@ def codegen(intent):
|
|
| 471 |
response = codegen_tkn.decode(gen_ids[0], skip_special_tokens=True)
|
| 472 |
return response
|
| 473 |
|
| 474 |
-
output=grad.Textbox(lines=1, label="Generated Python Code", placeholder="")
|
|
|
|
|
|
|
|
|
|
|
|
| 471 |
response = codegen_tkn.decode(gen_ids[0], skip_special_tokens=True)
|
| 472 |
return response
|
| 473 |
|
| 474 |
+
output=grad.Textbox(lines=1, label="Generated Python Code", placeholder="")
|
| 475 |
+
inp=grad.Textbox(lines=1, label="Place your intent here")
|
| 476 |
+
|
| 477 |
+
grad.Interface(codegen, inputs=inp, outputs=output).launch()
|