peterjandre commited on
Commit
2dc6194
·
1 Parent(s): 7708428

textual changes to Gradio interface

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -16,11 +16,11 @@ def generate_code(prompt):
16
  # Build Gradio interface
17
  iface = gr.Interface(
18
  fn=generate_code,
19
- inputs=gr.Textbox(lines=5, placeholder="Enter code prompt here..."),
20
- outputs="textbox",
21
- title="CodeT5 VBNet/C# Code Generator",
22
- description="Generate VB.NET or C# code from your prompt using a fine-tuned CodeT5 model."
23
  )
24
 
25
  if __name__ == "__main__":
26
- iface.launch()
 
16
  # Build Gradio interface
17
  iface = gr.Interface(
18
  fn=generate_code,
19
+ inputs=gr.Textbox(lines=5, placeholder="Enter VB.NET code here...", label="VB.NET Code Input"),
20
+ outputs=gr.Textbox(label="Generated C# Code"),
21
+ title="CodeT5 VBNet to C# Code Generator",
22
+ description="Generate C# code from VB.NET code using a fine-tuned CodeT5 model."
23
  )
24
 
25
  if __name__ == "__main__":
26
+ iface.launch(share=False)