Spaces:
Sleeping
Sleeping
Izhanjafry
commited on
Update app.py
Browse files
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
|