bhogarendernet commited on
Commit
369e5aa
·
1 Parent(s): c731ab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -112,16 +112,6 @@ class RenderNet:
112
  return response
113
 
114
 
115
- def image_to_base64(image):
116
- # Convert the image to bytes
117
- buffered = BytesIO()
118
- image.save(buffered, format="PNG") # You can change format to PNG if needed
119
-
120
- # Encode the bytes to base64
121
- img_str = base64.b64encode(buffered.getvalue())
122
-
123
- return img_str.decode('utf-8') # Convert bytes to string
124
-
125
  def remove_id_and_ext(text):
126
  text = re.sub(r'\[.*\]$', '', text)
127
  extension = text[-12:].strip()
@@ -235,6 +225,11 @@ css = """
235
  """
236
 
237
  with gr.Blocks(css=css) as demo:
 
 
 
 
 
238
  with gr.Row():
239
  with gr.Column(scale=6):
240
  model = gr.Dropdown(interactive=True, value="dreamshaper", show_label=True, label="Stable Diffusion Checkpoint", choices=rendernet_client.list_models())
 
112
  return response
113
 
114
 
 
 
 
 
 
 
 
 
 
 
115
  def remove_id_and_ext(text):
116
  text = re.sub(r'\[.*\]$', '', text)
117
  extension = text[-12:].strip()
 
225
  """
226
 
227
  with gr.Blocks(css=css) as demo:
228
+
229
+ with gr.Row():
230
+ with gr.Column(scale=6):
231
+ banner=gr.
232
+
233
  with gr.Row():
234
  with gr.Column(scale=6):
235
  model = gr.Dropdown(interactive=True, value="dreamshaper", show_label=True, label="Stable Diffusion Checkpoint", choices=rendernet_client.list_models())