Upload folder using huggingface_hub
Browse files
api.py
CHANGED
|
@@ -45,7 +45,7 @@ async def create_item(request: Request):
|
|
| 45 |
}
|
| 46 |
log = "[" + time + "] " + '", prompt:"' + prompt + '", response:"' + repr(response) + '"'
|
| 47 |
print(log)
|
| 48 |
-
torch_gc()
|
| 49 |
return answer
|
| 50 |
|
| 51 |
|
|
|
|
| 45 |
}
|
| 46 |
log = "[" + time + "] " + '", prompt:"' + prompt + '", response:"' + repr(response) + '"'
|
| 47 |
print(log)
|
| 48 |
+
# torch_gc()
|
| 49 |
return answer
|
| 50 |
|
| 51 |
|