Commit
·
2dc6194
1
Parent(s):
7708428
textual changes to Gradio interface
Browse files
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
|
20 |
-
outputs="
|
21 |
-
title="CodeT5 VBNet
|
22 |
-
description="Generate
|
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)
|