Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import whoami
|
3 |
-
import datetime
|
4 |
from dataset_uploader import ParquetScheduler
|
5 |
|
6 |
##########
|
@@ -125,7 +125,7 @@ def save_sft_data(system_prompt="", history=[], sft_chat_format="sharegpt", oaut
|
|
125 |
history = setup_submission(system_prompt, history, sft_chat_format)
|
126 |
# preparing the submission
|
127 |
data = {"contributor": contributor_username}
|
128 |
-
data["timestamp"] = str(datetime.
|
129 |
data["chat_format"] = sft_chat_format
|
130 |
data["conversations"] = history
|
131 |
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import whoami
|
3 |
+
from datetime import datetime, timezone
|
4 |
from dataset_uploader import ParquetScheduler
|
5 |
|
6 |
##########
|
|
|
125 |
history = setup_submission(system_prompt, history, sft_chat_format)
|
126 |
# preparing the submission
|
127 |
data = {"contributor": contributor_username}
|
128 |
+
data["timestamp"] = str(datetime.now(timezone.utc))
|
129 |
data["chat_format"] = sft_chat_format
|
130 |
data["conversations"] = history
|
131 |
|