Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ async def index():
|
|
17 |
@app.post("/api")
|
18 |
async def completion(request: Request):
|
19 |
data = await request.json()
|
20 |
-
prompt =
|
|
|
21 |
res = model_l(
|
22 |
prompt,
|
23 |
temperature=0.7,
|
|
|
17 |
@app.post("/api")
|
18 |
async def completion(request: Request):
|
19 |
data = await request.json()
|
20 |
+
prompt = data["prompt"]
|
21 |
+
prompt = f"Complete the following code, do not use comments too much and longer than half-line(return only the completed code!):\n\n{prompt}"
|
22 |
res = model_l(
|
23 |
prompt,
|
24 |
temperature=0.7,
|