Add application file
Browse files
app.py
CHANGED
@@ -1,10 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
-
st.title('
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
st.write(
|
8 |
-
st.write(
|
9 |
-
st.write('This is a seventh line')
|
10 |
-
st.write('This is a eighth line')
|
|
|
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 |
+
|
9 |
import streamlit as st
|
10 |
+
st.title('Code Generation')
|
11 |
+
huggingface_dataset_name = "red1xe/code_instructions"
|
12 |
+
|
13 |
+
dataset = load_dataset(huggingface_dataset_name)
|
14 |
+
|
15 |
+
st.write("## Dataset")
|
16 |
+
st.write(dataset)
|
|
|
|