Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -9,10 +9,11 @@ def main(): 
     | 
|
| 9 | 
         | 
| 10 | 
         
             
                with st.form("image-classification"):
         
     | 
| 11 | 
         
             
                    text = st.text_area('enter link image:')
         
     | 
| 
         | 
|
| 12 | 
         
             
                    # clicked==True only when the button is clicked
         
     | 
| 13 | 
         
             
                    clicked = st.form_submit_button("Submit")
         
     | 
| 14 | 
         
             
                    if clicked:
         
     | 
| 15 | 
         
            -
                      results = text
         
     | 
| 16 | 
         
             
                      st.json(results)
         
     | 
| 17 | 
         | 
| 18 | 
         
             
            if __name__ == "__main__":
         
     | 
| 
         | 
|
| 9 | 
         | 
| 10 | 
         
             
                with st.form("image-classification"):
         
     | 
| 11 | 
         
             
                    text = st.text_area('enter link image:')
         
     | 
| 12 | 
         
            +
              
         
     | 
| 13 | 
         
             
                    # clicked==True only when the button is clicked
         
     | 
| 14 | 
         
             
                    clicked = st.form_submit_button("Submit")
         
     | 
| 15 | 
         
             
                    if clicked:
         
     | 
| 16 | 
         
            +
                      results = classifier(text)
         
     | 
| 17 | 
         
             
                      st.json(results)
         
     | 
| 18 | 
         | 
| 19 | 
         
             
            if __name__ == "__main__":
         
     |