Xhaheen commited on
Commit
75fd8f4
·
1 Parent(s): 274230f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -54,7 +54,7 @@ def generate_caption_keywords(prompt, model='command-xlarge-20221108', max_token
54
 
55
 
56
 
57
- def img2img( path ,is_HD,design,x_prompt,alt_prompt,strength,guidance_scale,steps):
58
 
59
 
60
 
@@ -102,7 +102,7 @@ def img2img( path ,is_HD,design,x_prompt,alt_prompt,strength,guidance_scale,step
102
  import gradio as gr
103
 
104
  gr.Interface(img2img, [gr.Image(source="upload", type="filepath", label="Input Image"),
105
- gr.Checkbox(label="Click HD to get HD output(Not working in HF spaces. )",value = False),
106
  gr.Dropdown(['interior design of living room',
107
  'interior design of gaming room',
108
  'interior design of kitchen',
@@ -119,9 +119,9 @@ gr.Interface(img2img, [gr.Image(source="upload", type="filepath", label="Input
119
  gr.Slider(10, 50, value = 50, step = 1, label = 'Number of Iterations')
120
  ],
121
  gr.Image(),
122
- examples =[['1.png',False,'interior design of living room','False','interior design',0.6,7,50],
123
- ['2.png',False,'interior design of hall ','False','interior design',0.7,7,50],
124
- ['3.png',False,'interior design of bedroom','False','interior design',0.6,7,50]],title = "" +'Baith-al-suroor بَیتُ الْسرور 🏡💡🤖, Transform your space with the power of artificial intelligence. '+ "",
125
  description="Baith al suroor بَیتُ الْسرور (house of happiness in Arabic) 🏡💡🤖 is a simple app that uses the power of artificial intelligence to transform your space. With the Cohere language Command model, it can generate descriptions of your desired design, and the Stable Diffusion algorithm creates relevant images to bring your vision to life. Give Baith AI a try and see how it can elevate your interior design.--if you want to scale / reaserch / build mobile app on this space konnect me @[here](https://www.linkedin.com/in/sallu-mandya/)").launch( debug = True)
126
 
127
 
 
54
 
55
 
56
 
57
+ def img2img( path ,design,x_prompt,alt_prompt,strength,guidance_scale,steps):
58
 
59
 
60
 
 
102
  import gradio as gr
103
 
104
  gr.Interface(img2img, [gr.Image(source="upload", type="filepath", label="Input Image"),
105
+
106
  gr.Dropdown(['interior design of living room',
107
  'interior design of gaming room',
108
  'interior design of kitchen',
 
119
  gr.Slider(10, 50, value = 50, step = 1, label = 'Number of Iterations')
120
  ],
121
  gr.Image(),
122
+ examples =[['1.png','interior design of living room','False','interior design',0.6,7,50],
123
+ ['2.png','interior design of hall ','False','interior design',0.7,7,50],
124
+ ['3.png','interior design of bedroom','False','interior design',0.6,7,50]],title = "" +'Baith-al-suroor بَیتُ الْسرور 🏡💡🤖, Transform your space with the power of artificial intelligence. '+ "",
125
  description="Baith al suroor بَیتُ الْسرور (house of happiness in Arabic) 🏡💡🤖 is a simple app that uses the power of artificial intelligence to transform your space. With the Cohere language Command model, it can generate descriptions of your desired design, and the Stable Diffusion algorithm creates relevant images to bring your vision to life. Give Baith AI a try and see how it can elevate your interior design.--if you want to scale / reaserch / build mobile app on this space konnect me @[here](https://www.linkedin.com/in/sallu-mandya/)").launch( debug = True)
126
 
127