Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -196,7 +196,7 @@ async def chat(query,history,audience,sources,reports): | |
| 196 | 
             
                    if os.getenv("GRADIO_ENV") != "local":
         | 
| 197 | 
             
                        timestamp = str(datetime.now().timestamp())
         | 
| 198 | 
             
                        file = timestamp + ".json"
         | 
| 199 | 
            -
                        prompt = history[ | 
| 200 | 
             
                        logs = {
         | 
| 201 | 
             
                            "user_id": str(user_id),
         | 
| 202 | 
             
                            "prompt": prompt,
         | 
|  | |
| 196 | 
             
                    if os.getenv("GRADIO_ENV") != "local":
         | 
| 197 | 
             
                        timestamp = str(datetime.now().timestamp())
         | 
| 198 | 
             
                        file = timestamp + ".json"
         | 
| 199 | 
            +
                        prompt = history[1]["content"]
         | 
| 200 | 
             
                        logs = {
         | 
| 201 | 
             
                            "user_id": str(user_id),
         | 
| 202 | 
             
                            "prompt": prompt,
         | 

