Introducing FastRTC, a new way to build real-time AI apps
Read MoreIntroducing FastRTC, a new way to build real-time AI apps
Read MoreNew to Gradio? Start here: Getting Started
See the Release History
gradio.load_chat(ยทยทยท)
import gradio as gr
demo = gr.load_chat("http://localhost:11434/v1", model="deepseek-r1")
demo.launch()
token: str | None
= None
The API token or a placeholder string if you are using a local model, e.g. "ollama"
file_types: Literal['text_encoded', 'image'] | list[Literal['text_encoded', 'image']] | None
= "text_encoded"
The file types allowed to be uploaded by the user. "text_encoded" allows uploading any text-encoded file (which is simply appended to the prompt), and "image" adds image upload support. Set to None to disable file uploads.