Upload app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,10 @@ import gradio as gr
|
|
| 2 |
import torch
|
| 3 |
import torch.nn.functional as F
|
| 4 |
import tiktoken
|
| 5 |
-
from transformer import GPT, GPTConfig # Import your model class
|
| 6 |
import torch
|
| 7 |
import torch.nn as nn
|
| 8 |
from torch.utils.data import DataLoader, Dataset
|
| 9 |
from transformers import AutoTokenizer
|
| 10 |
-
from tqdm import tqdm
|
| 11 |
import os
|
| 12 |
|
| 13 |
# Load the model from Hugging Face Hub
|
|
|
|
| 2 |
import torch
|
| 3 |
import torch.nn.functional as F
|
| 4 |
import tiktoken
|
|
|
|
| 5 |
import torch
|
| 6 |
import torch.nn as nn
|
| 7 |
from torch.utils.data import DataLoader, Dataset
|
| 8 |
from transformers import AutoTokenizer
|
|
|
|
| 9 |
import os
|
| 10 |
|
| 11 |
# Load the model from Hugging Face Hub
|