rjiang12 commited on
Commit
a4cf573
·
1 Parent(s): f1e0876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
 
3
  def func(percent, numBlocks):
4
- filledSquares = "<div style='height:5px;width:5px;background-color:#555;display:inline-block'></div> "
5
- emptySquares = "<div style='height:5px;width:5px;background-color:#999;display:inline-block'></div> "
6
  numFilled = round((percent/100) * numBlocks)
7
  print(f"numFilled: {numFilled}")
8
  numEmpty = numBlocks - numFilled
 
1
  import gradio as gr
2
 
3
  def func(percent, numBlocks):
4
+ filledSquares = "<div style='height:12px;width:12px;background-color:#555;display:inline-block'></div> "
5
+ emptySquares = "<div style='height:12px;width:12px;background-color:#999;display:inline-block'></div> "
6
  numFilled = round((percent/100) * numBlocks)
7
  print(f"numFilled: {numFilled}")
8
  numEmpty = numBlocks - numFilled