varun500 commited on
Commit
a042655
1 Parent(s): 3606011

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,9 +1,11 @@
1
  import torch
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import streamlit as st
4
- model_id = "RWKV/rwkv-raven-1b5"
5
- model = AutoModelForCausalLM.from_pretrained(model_id)
6
- tokenizer = AutoTokenizer.from_pretrained(model_id)
 
 
7
 
8
  st.title("Raven Text Generator")
9
  st.write("Ask a question about ravens and get a response!")
 
1
  import torch
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import streamlit as st
4
+ from transformers import AutoTokenizer, AutoModelForCausalLM
5
+
6
+ tokenizer = AutoTokenizer.from_pretrained("samwit/koala-7b")
7
+
8
+ model = AutoModelForCausalLM.from_pretrained("samwit/koala-7b")
9
 
10
  st.title("Raven Text Generator")
11
  st.write("Ask a question about ravens and get a response!")