Spaces:
Sleeping
Sleeping
anhdt-dsai-02
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ app.add_middleware(
|
|
20 |
allow_headers=["*"],
|
21 |
)
|
22 |
@app.post("/gemini_gate")
|
23 |
-
async def
|
24 |
try:
|
25 |
result = await complete_gemini_async(data.prompt, data.key)
|
26 |
return result
|
|
|
20 |
allow_headers=["*"],
|
21 |
)
|
22 |
@app.post("/gemini_gate")
|
23 |
+
async def gate(data: Data):
|
24 |
try:
|
25 |
result = await complete_gemini_async(data.prompt, data.key)
|
26 |
return result
|