GautamGaur commited on
Commit
597cdbb
1 Parent(s): 0430530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ class TextData(BaseModel):
49
  def log_text(text: str):
50
  timestamp = datetime.now().isoformat()
51
  log_entry = f"{timestamp} - {text}\n"
52
- with open("text_logs.txt", "a") as file:
53
  file.write(log_entry)
54
 
55
  @app.post("/predict")
 
49
  def log_text(text: str):
50
  timestamp = datetime.now().isoformat()
51
  log_entry = f"{timestamp} - {text}\n"
52
+ with open("/tmp/text_logs.txt", "a") as file:
53
  file.write(log_entry)
54
 
55
  @app.post("/predict")