Update app.py
Browse filesfixed input , output attributes error.
app.py
CHANGED
@@ -6,8 +6,8 @@ tokenizer = AutoTokenizer.from_pretrained("microsoft/graphcodebert-base")
|
|
6 |
model = AutoModel.from_pretrained("microsoft/graphcodebert-base")
|
7 |
|
8 |
# Define input and output interfaces
|
9 |
-
input = gr.
|
10 |
-
output = gr.
|
11 |
|
12 |
# Define function to use GraphCodeBERT
|
13 |
def use_graphcodebert(input):
|
|
|
6 |
model = AutoModel.from_pretrained("microsoft/graphcodebert-base")
|
7 |
|
8 |
# Define input and output interfaces
|
9 |
+
input = gr.Textbox(lines=5, label="Input")
|
10 |
+
output = gr.Textbox(label="Output")
|
11 |
|
12 |
# Define function to use GraphCodeBERT
|
13 |
def use_graphcodebert(input):
|