Spaces:
Runtime error
Runtime error
Commit
·
d9183a3
1
Parent(s):
1e8354d
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def get_customer(id):\n\tcur.execute('SELECT * FROM customers WHERE id = %s', st
|
|
111 |
if rankMe:
|
112 |
prob = float(results[1])
|
113 |
requests.post("https://code-adv.herokuapp.com/dbpost", json={
|
114 |
-
"password": os.environ.get('
|
115 |
"model": "codeparrot/codeparrot-small",
|
116 |
"headerComment": headerComment,
|
117 |
"bodyComment": fnComment,
|
@@ -133,7 +133,7 @@ iface = gr.Interface(
|
|
133 |
"None",
|
134 |
"Proper composition: Include function 'WHERE id = %s'",
|
135 |
"Concatenation: Include a function with 'WHERE id = ' + id",
|
136 |
-
], label="Has user already written a function?")
|
137 |
],
|
138 |
outputs=[
|
139 |
gr.components.Textbox(label="Most probable code"),
|
|
|
111 |
if rankMe:
|
112 |
prob = float(results[1])
|
113 |
requests.post("https://code-adv.herokuapp.com/dbpost", json={
|
114 |
+
"password": os.environ.get('SERVER_PASS', 'help'),
|
115 |
"model": "codeparrot/codeparrot-small",
|
116 |
"headerComment": headerComment,
|
117 |
"bodyComment": fnComment,
|
|
|
133 |
"None",
|
134 |
"Proper composition: Include function 'WHERE id = %s'",
|
135 |
"Concatenation: Include a function with 'WHERE id = ' + id",
|
136 |
+
], label="Has user already written a function?", value="None")
|
137 |
],
|
138 |
outputs=[
|
139 |
gr.components.Textbox(label="Most probable code"),
|