Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -24,7 +24,7 @@ llm = CTransformers(
|
|
| 24 |
app = FastAPI()
|
| 25 |
|
| 26 |
|
| 27 |
-
@app.post("
|
| 28 |
async def generate_text(request: Request):
|
| 29 |
raw_data = await request.body() # Get the raw body data from the request
|
| 30 |
prompt = raw_data.decode('utf-8')
|
|
|
|
| 24 |
app = FastAPI()
|
| 25 |
|
| 26 |
|
| 27 |
+
@app.post("//llm_on_cpu")
|
| 28 |
async def generate_text(request: Request):
|
| 29 |
raw_data = await request.body() # Get the raw body data from the request
|
| 30 |
prompt = raw_data.decode('utf-8')
|