Commit
·
b0d809e
1
Parent(s):
95bd184
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,9 @@ def set_base_model(base_model_id):
|
|
72 |
def update_pixel_ratio(height, width):
|
73 |
return round(height*width/1048576,3)
|
74 |
|
|
|
|
|
|
|
75 |
examples = [
|
76 |
['A serious capybara at work, wearing a suit',
|
77 |
'low quality'],
|
|
|
72 |
def update_pixel_ratio(height, width):
|
73 |
return round(height*width/1048576,3)
|
74 |
|
75 |
+
def round_to_8(num):
|
76 |
+
return num - (num % 8)
|
77 |
+
|
78 |
examples = [
|
79 |
['A serious capybara at work, wearing a suit',
|
80 |
'low quality'],
|