Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import io
|
3 |
import os
|
4 |
import re
|
@@ -16,8 +15,6 @@ import outlines.text.generate as generate
|
|
16 |
import pandas as pd
|
17 |
import requests
|
18 |
from tqdm.auto import tqdm
|
19 |
-
from IPython.display import Image as IPythonImage
|
20 |
-
from IPython.display import clear_output, update_display
|
21 |
from PIL import Image as PILImage
|
22 |
import gradio as gr
|
23 |
|
@@ -198,7 +195,6 @@ def update(model_id_white, model_id_black):
|
|
198 |
pgn_moves = ""
|
199 |
move_number = 1
|
200 |
result = None
|
201 |
-
clear_output(wait=True)
|
202 |
|
203 |
# Time budget
|
204 |
time_budget_white = TIME_BUDGET
|
@@ -303,7 +299,6 @@ def update(model_id_white, model_id_black):
|
|
303 |
)
|
304 |
|
305 |
# Create and display the GIF
|
306 |
-
clear_output(wait=True)
|
307 |
create_gif(board_images, file_name + ".gif", duration=400)
|
308 |
|
309 |
# Print ELO ratings
|
|
|
|
|
1 |
import io
|
2 |
import os
|
3 |
import re
|
|
|
15 |
import pandas as pd
|
16 |
import requests
|
17 |
from tqdm.auto import tqdm
|
|
|
|
|
18 |
from PIL import Image as PILImage
|
19 |
import gradio as gr
|
20 |
|
|
|
195 |
pgn_moves = ""
|
196 |
move_number = 1
|
197 |
result = None
|
|
|
198 |
|
199 |
# Time budget
|
200 |
time_budget_white = TIME_BUDGET
|
|
|
299 |
)
|
300 |
|
301 |
# Create and display the GIF
|
|
|
302 |
create_gif(board_images, file_name + ".gif", duration=400)
|
303 |
|
304 |
# Print ELO ratings
|