Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Commit 
							
							·
						
						de2b038
	
1
								Parent(s):
							
							d2c07f7
								
Change format sent
Browse files
    	
        data.py
    CHANGED
    
    | @@ -11,7 +11,7 @@ def log_to_jsonl(file_path, data): | |
| 11 | 
             
                        raise ValueError("SAVE_URL environment variable not set")
         | 
| 12 |  | 
| 13 | 
             
                    # Serialize the data to a JSON string
         | 
| 14 | 
            -
                    json_data =  | 
| 15 |  | 
| 16 | 
             
                    # Create a dictionary with the JSON data as the value of a field named "data"
         | 
| 17 | 
             
                    request_body = {"data": json_data}
         | 
|  | |
| 11 | 
             
                        raise ValueError("SAVE_URL environment variable not set")
         | 
| 12 |  | 
| 13 | 
             
                    # Serialize the data to a JSON string
         | 
| 14 | 
            +
                    json_data = [{"file_path": file_path, "data": data}]
         | 
| 15 |  | 
| 16 | 
             
                    # Create a dictionary with the JSON data as the value of a field named "data"
         | 
| 17 | 
             
                    request_body = {"data": json_data}
         |