Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -61,7 +61,7 @@ async def root():
|
|
61 |
return {"status": "ok"}
|
62 |
|
63 |
|
64 |
-
@app.post("/generate
|
65 |
async def generate_text(item: Item, token: Annotated[str, Depends(oauth2_scheme)]):
|
66 |
# Reject if not authenticated
|
67 |
apiKey = os.environ.get("API_KEY")
|
|
|
61 |
return {"status": "ok"}
|
62 |
|
63 |
|
64 |
+
@app.post("/generate")
|
65 |
async def generate_text(item: Item, token: Annotated[str, Depends(oauth2_scheme)]):
|
66 |
# Reject if not authenticated
|
67 |
apiKey = os.environ.get("API_KEY")
|