OmPrakashSingh1704 commited on
Commit
4d52cb6
1 Parent(s): c5dcd31
options/Banner_Model/Image2Image.py CHANGED
@@ -4,12 +4,11 @@ import requests
4
  import random,os
5
  import numpy as np
6
  import gradio as gr
7
- import spaces
8
  import torch
9
  from PIL import Image
10
  from diffusers import FluxInpaintPipeline
11
- from huggingface_hub import login
12
- login(token=os.getenv("TOKEN"))
13
 
14
  MAX_SEED = np.iinfo(np.int32).max
15
  IMAGE_SIZE = 1024
@@ -40,7 +39,7 @@ def resize_image_dimensions(
40
  return new_width, new_height
41
 
42
 
43
- @spaces.GPU(duration=100)
44
  def I2I(
45
  input_image_editor: dict,
46
  input_text: str,
 
4
  import random,os
5
  import numpy as np
6
  import gradio as gr
7
+ # import spaces
8
  import torch
9
  from PIL import Image
10
  from diffusers import FluxInpaintPipeline
11
+
 
12
 
13
  MAX_SEED = np.iinfo(np.int32).max
14
  IMAGE_SIZE = 1024
 
39
  return new_width, new_height
40
 
41
 
42
+ # @spaces.GPU(duration=100)
43
  def I2I(
44
  input_image_editor: dict,
45
  input_text: str,
options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc CHANGED
Binary files a/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc and b/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc differ
 
options/__pycache__/Banner.cpython-310.pyc CHANGED
Binary files a/options/__pycache__/Banner.cpython-310.pyc and b/options/__pycache__/Banner.cpython-310.pyc differ