prithivMLmods commited on
Commit
a9aec20
·
verified ·
1 Parent(s): d8279ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  import json
2
  import gradio as gr
3
  import numpy as np
@@ -120,6 +131,7 @@ def generate(
120
  return image_paths, seed
121
 
122
  # Function to set the wallpaper size based on the selected option
 
123
  def set_wallpaper_size(size):
124
  if size == "phone":
125
  return 1080, 1920
@@ -128,6 +140,7 @@ def set_wallpaper_size(size):
128
  return 1024, 1024
129
 
130
  # Function to load predefined images for display
 
131
  def load_predefined_images():
132
  predefined_images = [
133
  "assets/image1.png",
 
1
+ #!/usr/bin/env python
2
+ #patch 0.01 ()
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # ...
11
+
12
  import json
13
  import gradio as gr
14
  import numpy as np
 
131
  return image_paths, seed
132
 
133
  # Function to set the wallpaper size based on the selected option
134
+
135
  def set_wallpaper_size(size):
136
  if size == "phone":
137
  return 1080, 1920
 
140
  return 1024, 1024
141
 
142
  # Function to load predefined images for display
143
+
144
  def load_predefined_images():
145
  predefined_images = [
146
  "assets/image1.png",