Pragformer commited on
Commit
6e8ddb9
1 Parent(s): b763fd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -96,27 +96,27 @@ with gr.Blocks() as pragformer_gui:
96
  Link to [PragFormer](https://arxiv.org/abs/2204.12835) Paper
97
  """)
98
 
99
- with gr.Row():
100
 
101
- with gr.Column():
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")
109
-
110
- code_in = gr.Textbox(lines=5, label="Write some code and see if it should be parallelized with OpenMP")
111
- submit_btn = gr.Button("Submit")
112
- with gr.Column():
113
- gr.Markdown("## Results")
114
- label_out = gr.Textbox(label="Label")
115
- confidence_out = gr.Textbox(label="Confidence")
116
-
117
- with gr.Row():
118
- private = gr.Textbox(label="Private", visible=False)
119
- reduction = gr.Textbox(label="Reduction", visible=False)
120
 
121
  # submit_btn.click(fn=predict, inputs=code_in, outputs=[label_out, confidence_out])
122
  # submit_btn.click(fn=is_private, inputs=code_in, outputs=private)
 
96
  Link to [PragFormer](https://arxiv.org/abs/2204.12835) Paper
97
  """)
98
 
99
+ # with gr.Row():
100
 
101
+ # with gr.Column():
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")
109
+
110
+ # code_in = gr.Textbox(lines=5, label="Write some code and see if it should be parallelized with OpenMP")
111
+ # submit_btn = gr.Button("Submit")
112
+ # with gr.Column():
113
+ # gr.Markdown("## Results")
114
+ # label_out = gr.Textbox(label="Label")
115
+ # confidence_out = gr.Textbox(label="Confidence")
116
+
117
+ # with gr.Row():
118
+ # private = gr.Textbox(label="Private", visible=False)
119
+ # reduction = gr.Textbox(label="Reduction", visible=False)
120
 
121
  # submit_btn.click(fn=predict, inputs=code_in, outputs=[label_out, confidence_out])
122
  # submit_btn.click(fn=is_private, inputs=code_in, outputs=private)