Izhanjafry commited on
Commit
06b5774
·
verified ·
1 Parent(s): f3a5452

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -57,6 +57,10 @@ def generate_response(formatted_prompt, max_tokens, temperature, top_p):
57
  output += response.token.text
58
  return output.strip()
59
 
 
 
 
 
60
  @app.post("/v1/chat/completions", response_model=ChatResponse)
61
  async def chat_completions(request: ChatRequest):
62
  # Validate model name
 
57
  output += response.token.text
58
  return output.strip()
59
 
60
+ @app.get("/")
61
+ def greet_json():
62
+ return {"Hello": "World!"}
63
+
64
  @app.post("/v1/chat/completions", response_model=ChatResponse)
65
  async def chat_completions(request: ChatRequest):
66
  # Validate model name