Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -44,9 +44,14 @@ button = st.button('Go') | |
| 44 | 
             
            if button:
         | 
| 45 | 
             
                #try:
         | 
| 46 | 
             
                result = predict(text, model, tokenizer)
         | 
| 47 | 
            -
                 | 
| 48 | 
            -
                 | 
| 49 | 
            -
                 | 
| 50 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 51 | 
             
                #except Exception:
         | 
| 52 | 
             
                #    st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")
         | 
|  | |
| 44 | 
             
            if button:
         | 
| 45 | 
             
                #try:
         | 
| 46 | 
             
                result = predict(text, model, tokenizer)
         | 
| 47 | 
            +
                
         | 
| 48 | 
            +
                #st.subheader('Max Korzh:')
         | 
| 49 | 
            +
                #lines = result.split('\n')
         | 
| 50 | 
            +
                #for line in lines:
         | 
| 51 | 
            +
                #    st.write(line)
         | 
| 52 | 
            +
                
         | 
| 53 | 
            +
                lines = result.replace('\n', '\n\n')
         | 
| 54 | 
            +
                st.write(lines)
         | 
| 55 | 
            +
                
         | 
| 56 | 
             
                #except Exception:
         | 
| 57 | 
             
                #    st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")
         | 
