Hivra commited on
Commit
aaa9022
·
verified ·
1 Parent(s): 31b7ec3

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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 = "/lambda_1"
12
 
13
  client = Client(SPACE_ID)
14
 
@@ -38,7 +38,7 @@ class ChatRequest(BaseModel):
38
 
39
  app = FastAPI()
40
 
41
- @app.post("/lambda_1", dependencies=[Depends(get_api_key)])
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: