Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	
		jocko
		
	commited on
		
		
					Commit 
							
							Β·
						
						5ae6be0
	
1
								Parent(s):
							
							584fdfe
								
add comet on all other operations
Browse files- src/streamlit_app.py +6 -0
 
    	
        src/streamlit_app.py
    CHANGED
    
    | 
         @@ -28,6 +28,12 @@ from datasets import load_dataset, get_dataset_split_names 
     | 
|
| 28 | 
         
             
            from PIL import Image
         
     | 
| 29 | 
         
             
            import openai
         
     | 
| 30 | 
         
             
            from opik import track, log_event
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 31 | 
         
             
            from openai import OpenAI
         
     | 
| 32 | 
         | 
| 33 | 
         
             
            # ========== π API Key ==========
         
     | 
| 
         | 
|
| 28 | 
         
             
            from PIL import Image
         
     | 
| 29 | 
         
             
            import openai
         
     | 
| 30 | 
         
             
            from opik import track, log_event
         
     | 
| 31 | 
         
            +
             
     | 
| 32 | 
         
            +
            import os
         
     | 
| 33 | 
         
            +
            os.environ["COMET_DISABLE_AUTO_LOGGING"] = "1"   # disable all auto-logging
         
     | 
| 34 | 
         
            +
            # or to only disable LLM patching:
         
     | 
| 35 | 
         
            +
            os.environ["COMET_DISABLE_AUTO_LOGGING_LLM"] = "1"
         
     | 
| 36 | 
         
            +
             
     | 
| 37 | 
         
             
            from openai import OpenAI
         
     | 
| 38 | 
         | 
| 39 | 
         
             
            # ========== π API Key ==========
         
     |