Update app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,13 @@ from fastapi import FastAPI
|
|
| 2 |
from fastapi.responses import PlainTextResponse
|
| 3 |
import requests
|
| 4 |
import json
|
|
|
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
@app.get("/")
|
| 9 |
async def greet_json():
|
| 10 |
-
return {"Hello": "World!123456789-00000"}
|
| 11 |
|
| 12 |
@app.post("/v1/completions")
|
| 13 |
async def completions(qdata:dict):
|
|
|
|
| 2 |
from fastapi.responses import PlainTextResponse
|
| 3 |
import requests
|
| 4 |
import json
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
@app.get("/")
|
| 10 |
async def greet_json():
|
| 11 |
+
return {"Hello": "World!123456789-00000"+os.environ('GEMINI_API_KEY')}
|
| 12 |
|
| 13 |
@app.post("/v1/completions")
|
| 14 |
async def completions(qdata:dict):
|