yoon-gu commited on
Commit
4f69797
โ€ข
1 Parent(s): ad7ae80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  import pandas as pd
3
  import random
@@ -58,8 +60,6 @@ with gr.Blocks() as demo:
58
  sdf = df[start:end]
59
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "๋ชจ๋“  ํƒ€์ž…")]
60
  pokemons_set = pokemons_set.to_dict("records")
61
- if "ํ€ด์ฆˆ ์‹œ์ž‘" == message:
62
- quiz_start.value = True
63
  if not quiz_start.value:
64
  if "ํ€ด์ฆˆ ์‹œ์ž‘" == message:
65
  q, a = get_question_answer(pokemons_set)
 
1
+ import os
2
+ os.system("pip install gradio==3.46.0")
3
  import gradio as gr
4
  import pandas as pd
5
  import random
 
60
  sdf = df[start:end]
61
  pokemons_set = sdf[sdf['types'].apply(lambda x: (types in x)) | (types == "๋ชจ๋“  ํƒ€์ž…")]
62
  pokemons_set = pokemons_set.to_dict("records")
 
 
63
  if not quiz_start.value:
64
  if "ํ€ด์ฆˆ ์‹œ์ž‘" == message:
65
  q, a = get_question_answer(pokemons_set)