Jay Patel commited on
Commit
d0631ce
·
1 Parent(s): 8f7e8b4

fixed play click event

Browse files
Files changed (1) hide show
  1. home_view/ui_home.py +2 -2
home_view/ui_home.py CHANGED
@@ -49,7 +49,7 @@ def SetSelected(playersCB):
49
  break
50
 
51
  def PlayGame():
52
- return gr.update(visible=True)
53
 
54
  def Predict(sketch):
55
  confidences = sk.Predict(sketch)
@@ -111,7 +111,7 @@ with gr.Blocks() as ui:
111
  with gr.Row(visible=False) as chatRow:
112
  chat = gr.ChatInterface(
113
  chatBot,
114
- title="Yes Man",
115
  description="Ask Yes Man any question",
116
  theme="soft",
117
  examples=["Hello", "Am I cool?", "Are tomatoes vegetables?"],
 
49
  break
50
 
51
  def PlayGame():
52
+ return gr.update(visible=True), r.update(visible=True)
53
 
54
  def Predict(sketch):
55
  confidences = sk.Predict(sketch)
 
111
  with gr.Row(visible=False) as chatRow:
112
  chat = gr.ChatInterface(
113
  chatBot,
114
+ title=gameTitle,
115
  description="Ask Yes Man any question",
116
  theme="soft",
117
  examples=["Hello", "Am I cool?", "Are tomatoes vegetables?"],