Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,6 @@ iface = gr.Interface( # Use from_pretrained instead of from_pipeline
|
|
26 |
fn=use_graphcodebert,
|
27 |
inputs=input,
|
28 |
outputs=output,
|
29 |
-
model=model, # Pass the model as a parameter
|
30 |
-
tokenizer=tokenizer, # Pass the tokenizer as a parameter
|
31 |
title="GraphCodeBERT Code Synthesis", # Add a title for the web app
|
32 |
description="Enter a natural language query and get a code snippet generated by GraphCodeBERT.", # Add a description for the web app
|
33 |
examples=[["create a function that returns the sum of two numbers"], ["sort a list of numbers in ascending order"]], # Add some examples for the input
|
|
|
26 |
fn=use_graphcodebert,
|
27 |
inputs=input,
|
28 |
outputs=output,
|
|
|
|
|
29 |
title="GraphCodeBERT Code Synthesis", # Add a title for the web app
|
30 |
description="Enter a natural language query and get a code snippet generated by GraphCodeBERT.", # Add a description for the web app
|
31 |
examples=[["create a function that returns the sum of two numbers"], ["sort a list of numbers in ascending order"]], # Add some examples for the input
|