KaiChen1998 commited on
Commit
996d4eb
·
1 Parent(s): 4d197b3
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -3,6 +3,8 @@ import argparse
3
  import traceback
4
  import logging
5
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
 
 
6
 
7
  import spaces
8
  import gradio as gr
@@ -136,6 +138,8 @@ def http_bot(state):
136
  # Retrive prompt
137
  logging.info(state.messages)
138
  logging.info("=================")
 
 
139
  logging.info(state.messages[-1])
140
  logging.info("=================")
141
  logging.info(state.messages[-1][0])
 
3
  import traceback
4
  import logging
5
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
6
+ logging.getLogger("http").setLevel(logging.WARNING)
7
+ logging.getLogger("httpx").setLevel(logging.WARNING)
8
 
9
  import spaces
10
  import gradio as gr
 
138
  # Retrive prompt
139
  logging.info(state.messages)
140
  logging.info("=================")
141
+ logging.info(str(state.messages))
142
+ logging.info("=================")
143
  logging.info(state.messages[-1])
144
  logging.info("=================")
145
  logging.info(state.messages[-1][0])