Spaces:
Configuration error
Configuration error
File size: 983 Bytes
7bbaf51 109c6a3 7bbaf51 81c704c 7bbaf51 36bebda |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
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
|