Spaces:
Paused
Paused
Update app/main.py
Browse files- app/main.py +2 -2
app/main.py
CHANGED
|
@@ -8,7 +8,7 @@ import json
|
|
| 8 |
|
| 9 |
# Configure your Gradio Space ID and default endpoint
|
| 10 |
SPACE_ID = "openfree/Llama-4-Scout-17B-Research"
|
| 11 |
-
DEFAULT_API = "/
|
| 12 |
|
| 13 |
client = Client(SPACE_ID)
|
| 14 |
|
|
@@ -38,7 +38,7 @@ class ChatRequest(BaseModel):
|
|
| 38 |
|
| 39 |
app = FastAPI()
|
| 40 |
|
| 41 |
-
@app.post("/
|
| 42 |
async def chat_endpoint(req: ChatRequest):
|
| 43 |
"""Forward chat requests to the Gradio API."""
|
| 44 |
try:
|
|
|
|
| 8 |
|
| 9 |
# Configure your Gradio Space ID and default endpoint
|
| 10 |
SPACE_ID = "openfree/Llama-4-Scout-17B-Research"
|
| 11 |
+
DEFAULT_API = "/query_deepseek_streaming"
|
| 12 |
|
| 13 |
client = Client(SPACE_ID)
|
| 14 |
|
|
|
|
| 38 |
|
| 39 |
app = FastAPI()
|
| 40 |
|
| 41 |
+
@app.post("/query_deepseek_streaming", dependencies=[Depends(get_api_key)])
|
| 42 |
async def chat_endpoint(req: ChatRequest):
|
| 43 |
"""Forward chat requests to the Gradio API."""
|
| 44 |
try:
|