Utsav2001 commited on
Commit
852708a
Β·
verified Β·
1 Parent(s): 7fa0aaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ def save_feedback(user_input: str, sentiment: str, confidence: float) -> str:
55
  f,
56
  )
57
  f.write("\n")
58
- scheduler.push_to_hub(commit_message="Add new feedback")
 
59
  return "Data saved successfully"
60
  except Exception as e:
61
  return f"Error saving data: {e}"
 
55
  f,
56
  )
57
  f.write("\n")
58
+ # Push the changes to Hugging Face Hub
59
+ scheduler.push_to_hub() # No `commit_message` argument
60
  return "Data saved successfully"
61
  except Exception as e:
62
  return f"Error saving data: {e}"