Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -47,7 +47,8 @@ def chat_fn(message, history): 
     | 
|
| 47 | 
         | 
| 48 | 
         
             
            with gr.Blocks() as demo:
         
     | 
| 49 | 
         
             
                gr.Markdown("## π Course Assistant β Chat with your course files")
         
     | 
| 50 | 
         
            -
                chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
         
     | 
| 
         | 
|
| 51 | 
         
             
                txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
         
     | 
| 52 | 
         
             
                txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
         
     | 
| 53 | 
         
             
                txt.submit(lambda: None, None, txt)  # clear input
         
     | 
| 
         | 
|
| 47 | 
         | 
| 48 | 
         
             
            with gr.Blocks() as demo:
         
     | 
| 49 | 
         
             
                gr.Markdown("## π Course Assistant β Chat with your course files")
         
     | 
| 50 | 
         
            +
                # chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
         
     | 
| 51 | 
         
            +
                chatbot = gr.Chatbot(elem_id="chatbot", type="tuple")
         
     | 
| 52 | 
         
             
                txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
         
     | 
| 53 | 
         
             
                txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
         
     | 
| 54 | 
         
             
                txt.submit(lambda: None, None, txt)  # clear input
         
     |