Spaces:
Sleeping
Sleeping
Update app.py
Browse files54 unmodified lines555657585859606110 unmodified lines727374757554 unmodified linesdef respond(message, history):
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks) messages = [{"role": "system", "content": f"You are a friendly chatbot using {info} to answer questions."}] messages = [{"role": "system", "content": f"You are an angry teacher chatbot using {info} to answer questions but always responding by complaining about your students."}] if history: messages.extend(history)10 unmodified lines
chatbot = gr.ChatInterface(respond, type="messages")
chatbot.launch(debug=True)chatbot.launch(debug=True, share=True)app.py+2-2