Spaces:
Sleeping
Sleeping
theme
Browse files1 unmodified line2345678910111213141516171819202122232422 unmodified lines4748495051521 unmodified lineimport randomfrom huggingface_hub import InferenceClientcustom_css = """body {background-color: #ff5733; /* dark background */color: white; /* white text */}.gr-button {background-color: #007acc;color: white;}.gr-textbox {background-color: #333;color: #fff;}"""with gr.Blocks(css=custom_css) as demo:gr.Markdown("welcome to the chatbot!")client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLMdef respond(message, history):22 unmodified linesrandom_choices = random.choice(choices)return random_choiceschatbot = gr.ChatInterface(respond, type = "messages")chatbot.launch(debug=True)1 unmodified line23456722 unmodified lines3031323334351 unmodified lineimport randomfrom huggingface_hub import InferenceClientclient = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLMdef respond(message, history):22 unmodified linesrandom_choices = random.choice(choices)return random_choiceschatbot = gr.ChatInterface(respond, type = "messages", themes = "'NoCrypt/miku'")chatbot.launch(debug=True)
app.py+1-18