mobadara commited on
Commit
166a748
·
verified ·
1 Parent(s): 7ce4e16

Sync from GitHub via hub-sync

Browse files
Files changed (1) hide show
  1. app/main.py +0 -1
app/main.py CHANGED
@@ -48,7 +48,6 @@ def predict_sentiment(request: SentimentRequest, db: Session = Depends(get_db)):
48
 
49
  db.add(log_entry)
50
  db.commit()
51
- db.refresh(log_entry) # Refresh to get the generated ID and timestamp from the database
52
 
53
  return SentimentResponse(
54
  input_text=request_data["text"],
 
48
 
49
  db.add(log_entry)
50
  db.commit()
 
51
 
52
  return SentimentResponse(
53
  input_text=request_data["text"],