Spaces:
Sleeping
Sleeping
debugging
Browse files2 unmodified lines34567898 unmodified lines181920212223242526272829302 unmodified linesfrom huggingface_hub import InferenceClient# import lines go at the top: any libraries I need to import go up here ^^client = InferenceClient("HuggingFaceH4/zephr-7b-beta")def respond(message, history):8 unmodified linesreturn response['choices'][0]['message']['content'].strip()def yes_or_no(message, history):return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])def echo(message, history):return messageprint("Hello World!")chatbot = gr.ChatInterface(respond, type = "messages")# defining my chatbot so that the user can interact and see their conversation history and send new messages2 unmodified lines34567898 unmodified lines1819202122232425262728292 unmodified linesfrom huggingface_hub import InferenceClient# import lines go at the top: any libraries I need to import go up here ^^client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")def respond(message, history):8 unmodified linesreturn response['choices'][0]['message']['content'].strip()def echo(message, history):return messagedef yes_or_no(message, history):return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])chatbot = gr.ChatInterface(respond, type = "messages")# defining my chatbot so that the user can interact and see their conversation history and send new messages
app.py+4-5