Spaces:
Sleeping
Sleeping
feat(ui):updated height
Browse files4 unmodified lines56789101113 unmodified lines2526272829304 unmodified linesdef streaming_response(user_input, history):response = chatbot_response(user_input, history)for i in range(len(response)):time.sleep(0.3)yield response[:i+1]#Response13 unmodified lineschatbot = gr.ChatInterface(streaming_response,type="messages",title="Study Assistance Chatbot",description="Welcome! Ask me anything related to your academic studies.",examples=["Hello","Hi", "Hey", "Help"]4 unmodified lines56789101113 unmodified lines252627282930314 unmodified linesdef streaming_response(user_input, history):response = chatbot_response(user_input, history)for i in range(len(response)):time.sleep(0.1)yield response[:i+1]#Response13 unmodified lineschatbot = gr.ChatInterface(streaming_response,type="messages",chatbot=gr.Chatbot(height=500)title="Study Assistance Chatbot",description="Welcome! Ask me anything related to your academic studies.",examples=["Hello","Hi", "Hey", "Help"]
app.py+2-1