alperugurcan commited on
Commit
c63dd1f
·
verified ·
1 Parent(s): 80c047d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -72,7 +72,7 @@ def play_game(board, col, state):
72
  return format_board(board), "Your turn!"
73
 
74
  def create_ui():
75
- with gr.Blocks() as demo:
76
  gr.Markdown("# Play Connect Four Against AI")
77
  gr.Markdown("You are Red (🔴), AI is Yellow (🟡)")
78
 
@@ -113,7 +113,7 @@ def create_ui():
113
 
114
  return demo
115
 
116
- # Add some CSS to make the board look better
117
  css = """
118
  #board {
119
  max-width: 400px;
@@ -127,4 +127,4 @@ css = """
127
  """
128
 
129
  demo = create_ui()
130
- demo.launch(css=css)
 
72
  return format_board(board), "Your turn!"
73
 
74
  def create_ui():
75
+ with gr.Blocks(css=css) as demo:
76
  gr.Markdown("# Play Connect Four Against AI")
77
  gr.Markdown("You are Red (🔴), AI is Yellow (🟡)")
78
 
 
113
 
114
  return demo
115
 
116
+ # CSS definition
117
  css = """
118
  #board {
119
  max-width: 400px;
 
127
  """
128
 
129
  demo = create_ui()
130
+ demo.launch()