Spaces:
Sleeping
Sleeping
Commit History
-
Create filemessage
Verified signature33023d6 -
Update multimodel message
Verified signature0777130 -
Create multimodel message
Verified signature7fd28dd -
Update user function
Verified signature04cf977 -
Create user function
Verified signature27dd73f -
Create parameters
Verified signaturee8993c5 -
Update usage
Verified signature55abd0a -
create usage
Verified signatureimport gradio as gr from gradio_multimodalchatbot import MultimodalChatbot from gradio.data_classes import FileData user_msg1 = {"text": "Hello, what is in this image?", "files": [{"file": FileData(path="https://gradio-builds.s3.amazonaws.com/diffusion_image/cute_dog.jpg")}] } bot_msg1 = {"text": "It is a very cute dog", "files": []} user_msg2 = {"text": "Describe this audio clip please.", "files": [{"file": FileData(path="cantina.wav")}]} bot_msg2 = {"text": "It is the cantina song from Star Wars", "files": []} user_msg3 = {"text": "Give me a video clip please.", "files": []} bot_msg3 = {"text": "Here is a video clip of the world", "files": [{"file": FileData(path="world.mp4")}, {"file": FileData(path="cantina.wav")}]} conversation = [[user_msg1, bot_msg1], [user_msg2, bot_msg2], [user_msg3, bot_msg3]] with gr.Blocks() as demo: MultimodalChatbot(value=conversation, he…5f9eafb -
Create install
Verified signature8bd1cd2
-
Update requirements.txt
Verified signature6962898 -
Rename .gitattributes to .gitattributes.me
Verified signature94961f4 -
Update README.md
Verified signaturef12e8ae
-
update
Verified signatureimport gradio as gr import time def echo(message, history, system_prompt, tokens): response = f"System prompt: {system_prompt}\n Message: {message}." for i in range(min(len(response), int(tokens))): time.sleep(0.05) yield response[: i + 1] demo = gr.ChatInterface( echo, additional_inputs=[ gr.Textbox("You are helpful AI.", label="System Prompt"), gr.Slider(10, 100), ], ) if __name__ == "__main__": demo.queue().launch()20e9eb9 -
initial commit
Verified signature42f772b -
Duplicate from gradio-templates/chatbot
Verified signatureCo-authored-by: Pete <pngwn@users.noreply.huggingface.co>12beef2