Spaces:
Sleeping
Sleeping
adilriaz264
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
|
3 |
from gtts import gTTS
|
4 |
-
from IPython.display import Audio
|
5 |
|
6 |
# Load Pretrained Model (GPT-2 for Reminders & Health Tips)
|
7 |
model = GPT2LMHeadModel.from_pretrained("gpt2")
|
@@ -64,4 +63,3 @@ user_query = st.text_input("Ask a question (e.g., 'What are the side effects of
|
|
64 |
if user_query:
|
65 |
bot_reply = chatbot_response(user_query)
|
66 |
st.write("Chatbot Reply:", bot_reply)
|
67 |
-
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
|
3 |
from gtts import gTTS
|
|
|
4 |
|
5 |
# Load Pretrained Model (GPT-2 for Reminders & Health Tips)
|
6 |
model = GPT2LMHeadModel.from_pretrained("gpt2")
|
|
|
63 |
if user_query:
|
64 |
bot_reply = chatbot_response(user_query)
|
65 |
st.write("Chatbot Reply:", bot_reply)
|
|