Spaces:
Sleeping
Sleeping
Update app.py
Browse files54 unmodified lines5556575859606110 unmodified lines7273747554 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."}]if history:messages.extend(history)10 unmodified lineschatbot = gr.ChatInterface(respond, type="messages")chatbot.launch(debug=True)54 unmodified lines5556575859606110 unmodified lines7273747554 unmodified linesdef respond(message, history):info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)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 lineschatbot = gr.ChatInterface(respond, type="messages")chatbot.launch(debug=True, share=True)
app.py+2-2