Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -49,8 +49,8 @@ class PostSpazio(BaseModel):
|
|
| 49 |
input: str = ''
|
| 50 |
api_name: str = "/chat"
|
| 51 |
|
| 52 |
-
def LoggaTesto(
|
| 53 |
-
print(f"{datetime.now()}: ----------------------------------| {
|
| 54 |
|
| 55 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
| 56 |
@app.post("/Genera")
|
|
|
|
| 49 |
input: str = ''
|
| 50 |
api_name: str = "/chat"
|
| 51 |
|
| 52 |
+
def LoggaTesto(log_type, text):
|
| 53 |
+
print(f"{datetime.now()}: ----------------------------------| {log_type} |-----------------------------------\n{text}\n\n")
|
| 54 |
|
| 55 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
| 56 |
@app.post("/Genera")
|