Sephfox commited on
Commit
b1d82e7
1 Parent(s): 02c3e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,7 +2,10 @@ import streamlit as st
2
  import numpy as np
3
  import torch
4
  import random
5
- from transformers import GPT2LMHeadModel, GPT2Tokenizer, Trainer, TrainingArguments, DataCollatorForLanguageModeling
 
 
 
6
  from datasets import Dataset
7
  from huggingface_hub import HfApi
8
  import plotly.graph_objects as go
@@ -10,6 +13,7 @@ import time
10
  from datetime import datetime
11
  import threading
12
 
 
13
  # Cyberpunk and Loading Animation Styling
14
  def setup_cyberpunk_style():
15
  st.markdown("""
 
2
  import numpy as np
3
  import torch
4
  import random
5
+ from transformers import (
6
+ GPT2LMHeadModel, GPT2Tokenizer, Trainer, TrainingArguments, DataCollatorForLanguageModeling,
7
+ TrainerCallback # Import TrainerCallback here
8
+ )
9
  from datasets import Dataset
10
  from huggingface_hub import HfApi
11
  import plotly.graph_objects as go
 
13
  from datetime import datetime
14
  import threading
15
 
16
+
17
  # Cyberpunk and Loading Animation Styling
18
  def setup_cyberpunk_style():
19
  st.markdown("""