Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Commit 
							
							·
						
						dfcf46b
	
1
								Parent(s):
							
							6f34898
								
Create app.py
Browse files
    	
        app.py
    ADDED
    
    | @@ -0,0 +1,9 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            import streamlit as st
         | 
| 2 | 
            +
            from transformers import pipeline
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            pipe = pipeline(model="Intradiction/finetuning-sentiment-model-3000-samples")
         | 
| 5 | 
            +
            text = st.text_area('Input a movie review:')
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            if text:
         | 
| 8 | 
            +
                out = pipe(text)
         | 
| 9 | 
            +
                st.json(out)
         |