rica commited on
Commit
808e0ef
·
1 Parent(s): d3a4011

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,5 +6,5 @@ pipe = pipeline(task="text-classification",
6
  gr.Interface.from_pipeline(pipe,
7
  title="Insecure Code Detector",
8
  description="Label 1 for insecure code",
9
- examples = [["def search(arr, low, high, x): if high >= low: mid = (high + low) // 2 if arr[mid] == x: return mid elif arr[mid] > x: return search(arr, low, mid - 1, x) else: return search(arr, mid + 1, high, x) else: return -1"]]
10
  allow_flagging="never").launch(inbrowser=True)
 
6
  gr.Interface.from_pipeline(pipe,
7
  title="Insecure Code Detector",
8
  description="Label 1 for insecure code",
9
+ examples = [["def search(arr, low, high, x): if high >= low: mid = (high + low) // 2 if arr[mid] == x: return mid elif arr[mid] > x: return search(arr, low, mid - 1, x) else: return search(arr, mid + 1, high, x) else: return -1"]],
10
  allow_flagging="never").launch(inbrowser=True)