Add application file
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, GenerationConfig, TrainingArguments, Trainer
|
3 |
+
import torch
|
4 |
+
import time
|
5 |
+
import evaluate
|
6 |
+
import pandas as pd
|
7 |
+
import numpy as np
|
8 |
import streamlit as st
|
9 |
|
10 |
+
huggingface_dataset_name = "red1xe/code_instructions"
|
11 |
+
|
12 |
+
dataset = load_dataset(huggingface_dataset_name)
|
13 |
+
|
14 |
+
st.spinner("Loading model...")
|
15 |
+
st.write(dataset)
|