Spaces:
Sleeping
Sleeping
Commit ·
48bf45d
1
Parent(s): 6900593
Update app.py
Browse files6 unmodified lines7891011121 unmodified line1415161718196 unmodified linesimport streamlit as stimport sentencepiecefrom transformers import pipeline, T5Tokenizer, T5ForConditionalGenerationmodel=T5ForConditionalGeneration.from_pretrained("Logeswaransr/T5_MineAI_Prototype").to("cpu")1 unmodified linepipe=pipeline('text2text-generation', model=model, tokenizer=tokenizer)greetings=["Hello! My name is MineAI, A specially trained LLM here to assist you on your Mining Related Queries.","How may I help you?"]st.set_page_config(page_title='Sample Chatbot', layout='wide')6 unmodified lines78910111213141 unmodified line16171819202122236 unmodified linesimport streamlit as stimport sentencepiecefrom gtts import gTTSfrom io import BytesIOfrom transformers import pipeline, T5Tokenizer, T5ForConditionalGenerationmodel=T5ForConditionalGeneration.from_pretrained("Logeswaransr/T5_MineAI_Prototype").to("cpu")1 unmodified linepipe=pipeline('text2text-generation', model=model, tokenizer=tokenizer)greetings=["Hello! My name is MineAI, A specially trained LLM here to assist you on your Mining Related Queries.","How may I help you?"]st.set_page_config(page_title='Sample Chatbot', layout='wide')
app.py+4