arieridwans commited on
Commit
24f2e60
1 Parent(s): 1c8c3b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,18 +4,18 @@ import torch
4
 
5
  # Load the Phi 2 model and tokenizer
6
  tokenizer = AutoTokenizer.from_pretrained(
7
- "arieridwans/phi_2-finetuned-lyrics",
8
  trust_remote_code=True
9
  )
10
 
11
  model = AutoModelForCausalLM.from_pretrained(
12
- "microsoft/phi-2",
13
  device_map="auto",
14
  trust_remote_code=True
15
  )
16
 
17
  # Streamlit UI
18
- st.title("Eleanor Rigby")
19
 
20
  # User input prompt
21
  user_prompt = st.text_area("Enter your prompt that can be song lyrics:", """Yesterday, I saw you in my dream""")
 
4
 
5
  # Load the Phi 2 model and tokenizer
6
  tokenizer = AutoTokenizer.from_pretrained(
7
+ "microsoft/phi-2",
8
  trust_remote_code=True
9
  )
10
 
11
  model = AutoModelForCausalLM.from_pretrained(
12
+ "arieridwans/phi_2-finetuned-lyrics",
13
  device_map="auto",
14
  trust_remote_code=True
15
  )
16
 
17
  # Streamlit UI
18
+ st.title("Eleanor Rigby - Lyrics Generation")
19
 
20
  # User input prompt
21
  user_prompt = st.text_area("Enter your prompt that can be song lyrics:", """Yesterday, I saw you in my dream""")