MickyMike commited on
Commit
abae308
1 Parent(s): 20e24b1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -80,7 +80,6 @@ if __name__ == "__main__":
80
  st.code(c)
81
  st.markdown("### Vulnerable Function:")
82
  st.code(input_code, language="cpp", line_numbers=True)
83
- st.snow()
84
 
85
  elif behavior == "Analyze my own":
86
  # user input of project title
@@ -98,8 +97,6 @@ if __name__ == "__main__":
98
  line_pred = out["batch_statement_pred"][0]
99
  line_confidence = out["batch_statement_pred_prob"][0]
100
  output = None
101
- # inference complete
102
- st.snow()
103
  print_code = input_code.split("\n")[:MAX_NUM_STATEMENTS]
104
  if func_pred == 0:
105
  st.markdown("### Scanning Results:")
@@ -116,4 +113,3 @@ if __name__ == "__main__":
116
  st.code(c)
117
  st.markdown("### Vulnerable Function:")
118
  st.code(input_code, language="cpp", line_numbers=True)
119
- st.snow()
 
80
  st.code(c)
81
  st.markdown("### Vulnerable Function:")
82
  st.code(input_code, language="cpp", line_numbers=True)
 
83
 
84
  elif behavior == "Analyze my own":
85
  # user input of project title
 
97
  line_pred = out["batch_statement_pred"][0]
98
  line_confidence = out["batch_statement_pred_prob"][0]
99
  output = None
 
 
100
  print_code = input_code.split("\n")[:MAX_NUM_STATEMENTS]
101
  if func_pred == 0:
102
  st.markdown("### Scanning Results:")
 
113
  st.code(c)
114
  st.markdown("### Vulnerable Function:")
115
  st.code(input_code, language="cpp", line_numbers=True)