Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -10,7 +10,7 @@ llm_wrapper = LLMWrapper()
|
|
10 |
|
11 |
|
12 |
|
13 |
-
@app.post("/")
|
14 |
async def generate_text(request: Request):
|
15 |
raw_data = await request.body() # Get the raw body data from the request
|
16 |
prompt = raw_data.decode('utf-8')
|
|
|
10 |
|
11 |
|
12 |
|
13 |
+
@app.post("/llm_on_cpu")
|
14 |
async def generate_text(request: Request):
|
15 |
raw_data = await request.body() # Get the raw body data from the request
|
16 |
prompt = raw_data.decode('utf-8')
|