Add application file
Browse files
app.py
CHANGED
@@ -5,9 +5,19 @@ import time
|
|
5 |
import evaluate
|
6 |
import pandas as pd
|
7 |
import numpy as np
|
|
|
8 |
|
9 |
import streamlit as st
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
huggingface_dataset_name = "red1xe/code_instructions"
|
12 |
dataset = load_dataset(huggingface_dataset_name)
|
13 |
model_name='gpt2'
|
|
|
5 |
import evaluate
|
6 |
import pandas as pd
|
7 |
import numpy as np
|
8 |
+
from huggingface_hub import login
|
9 |
|
10 |
import streamlit as st
|
11 |
+
|
12 |
+
st.set_page_config(
|
13 |
+
page_title="Code Generation",
|
14 |
+
page_icon="🤖",
|
15 |
+
layout="wide",
|
16 |
+
initial_sidebar_state="expanded",
|
17 |
+
)
|
18 |
+
login(token='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', add_to_git_credential=True)
|
19 |
+
|
20 |
+
st.title("Code Generation")
|
21 |
huggingface_dataset_name = "red1xe/code_instructions"
|
22 |
dataset = load_dataset(huggingface_dataset_name)
|
23 |
model_name='gpt2'
|