DongfuJiang commited on
Commit
1b1beb7
1 Parent(s): 355235b
Files changed (3) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
  3. serve/log_server.py +0 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def load_elo_results(elo_results_dir):
76
  return elo_results_file, leaderboard_table_file
77
 
78
  if __name__ == "__main__":
79
- server_port = SERVER_PORT
80
  root_path = ROOT_PATH
81
  elo_results_dir = ELO_RESULTS_DIR
82
  models = ModelManager()
 
76
  return elo_results_file, leaderboard_table_file
77
 
78
  if __name__ == "__main__":
79
+ server_port = int(SERVER_PORT)
80
  root_path = ROOT_PATH
81
  elo_results_dir = ELO_RESULTS_DIR
82
  models = ModelManager()
requirements.txt CHANGED
@@ -47,4 +47,5 @@ nltk~=3.8.1
47
  krippendorff
48
  statsmodels
49
  plotly
50
- -e git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
 
 
47
  krippendorff
48
  statsmodels
49
  plotly
50
+ -e git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
51
+ spaces
serve/log_server.py CHANGED
@@ -43,7 +43,6 @@ async def save_log(message: str = Form(...), log_path: str = Form(...)):
43
  """
44
  Save a log message to a specified log file on the server.
45
  """
46
- print(f"Received log message: {message} to be saved at: {log_path}")
47
  # Ensure the directory for the log file exists
48
  if os.path.dirname(log_path):
49
  os.makedirs(os.path.dirname(log_path), exist_ok=True)
 
43
  """
44
  Save a log message to a specified log file on the server.
45
  """
 
46
  # Ensure the directory for the log file exists
47
  if os.path.dirname(log_path):
48
  os.makedirs(os.path.dirname(log_path), exist_ok=True)