Super_AI_Assistant / utils.py
aasherkamal216
Update utils.py
dcfcec7 unverified
raw
history blame contribute delete
983 Bytes
import streamlit as st
def about():
about_text = """This AI-powered Streamlit app allows users to interact with various LLMs through
multiple media inputs, including text, images, audio, voice, video, PDF, Docx, and links.
Users can choose between a Chatbot, Agents, or a summarizer model, customize voice responses,
and reset the conversation as needed. The app processes and responds to queries in real-time,
offering an intuitive and versatile experience."""
return about_text
def set_safety_settings():
safety_settings = [
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_NONE"
},
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"threshold": "BLOCK_NONE"
},
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"threshold": "BLOCK_NONE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"threshold": "BLOCK_NONE"
},
]
return safety_settings