Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
| 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}"
|