jorgemarcc commited on
Commit
accd6af
·
verified ·
1 Parent(s): f113199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -72,7 +72,6 @@ def compare_algorithms(code1, code2):
72
  buf.seek(0)
73
  return Image.open(buf)
74
 
75
- # Gradio interface
76
  interface = gr.Interface(
77
  fn=compare_algorithms,
78
  inputs=[
@@ -81,7 +80,14 @@ interface = gr.Interface(
81
  ],
82
  outputs=gr.Image(type="pil", label="Token Embedding PCA"),
83
  title="GraphCodeBERT Token Embedding Comparison",
84
- description="Edit or paste two Python code snippets. This tool compares their token-level embeddings using GraphCodeBERT and PCA."
 
 
 
 
 
 
 
85
  )
86
 
87
  if __name__ == "__main__":
 
72
  buf.seek(0)
73
  return Image.open(buf)
74
 
 
75
  interface = gr.Interface(
76
  fn=compare_algorithms,
77
  inputs=[
 
80
  ],
81
  outputs=gr.Image(type="pil", label="Token Embedding PCA"),
82
  title="GraphCodeBERT Token Embedding Comparison",
83
+ description="Edit or paste two Python code snippets. This tool compares their token-level embeddings using GraphCodeBERT and PCA.",
84
+ article="""
85
+ **Citation**
86
+ Martinez-Gil, J. (2025). *Augmenting the Interpretability of GraphCodeBERT for Code Similarity Tasks.* International Journal of Software Engineering and Knowledge Engineering, 35(05), 657–678.
87
+
88
+ **GitHub Repository**
89
+ [View Source on GitHub](https://github.com/jorge-martinez-gil/graphcodebert-interpretability)
90
+ """
91
  )
92
 
93
  if __name__ == "__main__":