red1xe commited on
Commit
44131c9
1 Parent(s): 9b2bdb3

Add application file

Browse files
Files changed (1) hide show
  1. app.py +11 -1
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
- st.title('Code Generation')
 
 
 
 
 
 
 
 
 
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'