Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load TinyLlama chatbot pipeline
|
| 5 |
-
pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype="
|
| 6 |
|
| 7 |
# Streamlit app header
|
| 8 |
st.set_page_config(page_title="Chatbot Demo", page_icon="🤖")
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load TinyLlama chatbot pipeline
|
| 5 |
+
pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype="auto", device_map="auto")
|
| 6 |
|
| 7 |
# Streamlit app header
|
| 8 |
st.set_page_config(page_title="Chatbot Demo", page_icon="🤖")
|