red1xe commited on
Commit
7f51a5a
1 Parent(s): c28bb5f

Add application file

Browse files
Files changed (1) hide show
  1. app.py +15 -9
app.py CHANGED
@@ -1,10 +1,16 @@
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
- st.title('Hello World')
3
- st.write('This is my first app')
4
- st.write('This is a second line')
5
- st.write('This is a third line')
6
- st.write('This is a fourth line')
7
- st.write('This is a fifth line')
8
- st.write('This is a sixth line')
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)