Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import torch
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
import streamlit as st
|
4 |
-
|
5 |
-
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
|
|
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!")
|