Pragformer commited on
Commit
b763fd8
·
1 Parent(s): dc81ac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ import json
13
 
14
  # tokenizer = transformers.AutoTokenizer.from_pretrained('NTUYG/DeepSCC-RoBERTa')
15
 
16
- with open('c_data.json', 'r') as f:
17
- data = json.load(f)
18
 
19
  # def fill_code(code_pth):
20
  # return data[code_pth]['pragma'], data[code_pth]['code']
@@ -102,7 +102,7 @@ with gr.Blocks() as pragformer_gui:
102
  gr.Markdown("## Input")
103
  with gr.Row():
104
  with gr.Column():
105
- drop = gr.Dropdown(list(data.keys()), label="Random Code Snippet")
106
  sample_btn = gr.Button("Sample")
107
 
108
  pragma = gr.Textbox(label="Pragma")
 
13
 
14
  # tokenizer = transformers.AutoTokenizer.from_pretrained('NTUYG/DeepSCC-RoBERTa')
15
 
16
+ # with open('c_data.json', 'r') as f:
17
+ # data = json.load(f)
18
 
19
  # def fill_code(code_pth):
20
  # return data[code_pth]['pragma'], data[code_pth]['code']
 
102
  gr.Markdown("## Input")
103
  with gr.Row():
104
  with gr.Column():
105
+ drop = gr.Dropdown(['a', 'b'], label="Random Code Snippet") # list(data.keys())
106
  sample_btn = gr.Button("Sample")
107
 
108
  pragma = gr.Textbox(label="Pragma")