AhmedSSoliman commited on
Commit
6183dca
1 Parent(s): db2bd0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -16,7 +16,14 @@ def generate_code(NL):
16
  return output_code
17
 
18
 
19
- iface = gr.Interface(fn=generate_code, inputs="text", outputs="text")
 
 
 
 
 
 
 
20
  iface.launch()
21
  #iface.launch(share=True)
22
 
 
16
  return output_code
17
 
18
 
19
+ iface = gr.Interface(fn=generate_code, inputs="text", outputs="text",
20
+ examples=[["define the method i with an argument self."],
21
+ ["substitute asvar for self.asvar."],
22
+ ["convert host to lowercase."],
23
+ ["for every var in self.vars,"],
24
+ ["call the method parser.delete_first_token."]],
25
+ title="MarianCG: A Code Generation Transformer Model Inspired by Machine Translation",
26
+ description="This is a code generation model which can generate code from the natural language description")
27
  iface.launch()
28
  #iface.launch(share=True)
29