Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -223,6 +223,9 @@ def run_client(): | |
| 223 | 
             
                            display = displacy.render(
         | 
| 224 | 
             
                                dict_of_ents, manual=True, style="ent", options=options
         | 
| 225 | 
             
                            )
         | 
|  | |
|  | |
|  | |
| 226 | 
             
                            with st.container():
         | 
| 227 | 
             
                                st.write(display, unsafe_allow_html=True)
         | 
| 228 |  | 
|  | |
| 223 | 
             
                            display = displacy.render(
         | 
| 224 | 
             
                                dict_of_ents, manual=True, style="ent", options=options
         | 
| 225 | 
             
                            )
         | 
| 226 | 
            +
                            display = display.replace("\n", " ")
         | 
| 227 | 
            +
                            # heurstic, prevents split of annotation decorations
         | 
| 228 | 
            +
                            display = display.replace("border-radius: 0.35em;", "border-radius: 0.35em; white-space: nowrap;")
         | 
| 229 | 
             
                            with st.container():
         | 
| 230 | 
             
                                st.write(display, unsafe_allow_html=True)
         | 
| 231 |  | 
