jbilcke-hf HF staff commited on
Commit
f3c09ed
1 Parent(s): 719ed9c

emergency fix

Browse files
src/app/interface/bottom-bar/index.tsx CHANGED
@@ -124,14 +124,19 @@ ${uploadUrl
124
  `scale-[0.9]`
125
  )}>
126
  <div>
127
- {process.env.NEXT_PUBLIC_CAN_UPSCALE === "true" ? <Button
 
 
 
128
  onClick={handleUpscale}
129
  disabled={!prompt?.length || remainingImages > 0 || isUpscaling || !Object.values(upscaleQueue).length}
130
  >
131
  {isUpscaling
132
  ? `${allStatus.length - Object.values(upscaleQueue).length}/${allStatus.length} ⌛`
133
  : "Upscale"}
134
- </Button> : null}
 
 
135
  </div>
136
  <div>
137
  <Button
@@ -155,7 +160,10 @@ ${uploadUrl
155
  </Button>
156
  </div>
157
  <div>
158
- {process.env.NEXT_PUBLIC_ENABLE_COMMUNITY_SHARING === "true" ? <Button
 
 
 
159
  onClick={handleShare}
160
  disabled={!prompt?.length}
161
  className="space-x-2"
@@ -165,7 +173,9 @@ ${uploadUrl
165
  <span className="hidden md:inline">Share to community</span>
166
  <span className="inline md:hidden">Share</span>
167
  </div>
168
- </Button> : null}
 
 
169
  </div>
170
  </div>
171
  </div>
 
124
  `scale-[0.9]`
125
  )}>
126
  <div>
127
+ {
128
+ // there is an issue, this env check doesn't work..
129
+ // process.env.NEXT_PUBLIC_CAN_UPSCALE === "true" ?
130
+ <Button
131
  onClick={handleUpscale}
132
  disabled={!prompt?.length || remainingImages > 0 || isUpscaling || !Object.values(upscaleQueue).length}
133
  >
134
  {isUpscaling
135
  ? `${allStatus.length - Object.values(upscaleQueue).length}/${allStatus.length} ⌛`
136
  : "Upscale"}
137
+ </Button>
138
+ // : null
139
+ }
140
  </div>
141
  <div>
142
  <Button
 
160
  </Button>
161
  </div>
162
  <div>
163
+ {
164
+ // there is an issue, this env check doesn't work..
165
+ // process.env.NEXT_PUBLIC_ENABLE_COMMUNITY_SHARING === "true" ?
166
+ <Button
167
  onClick={handleShare}
168
  disabled={!prompt?.length}
169
  className="space-x-2"
 
173
  <span className="hidden md:inline">Share to community</span>
174
  <span className="inline md:hidden">Share</span>
175
  </div>
176
+ </Button>
177
+ //: null
178
+ }
179
  </div>
180
  </div>
181
  </div>
src/app/interface/panel/index.tsx CHANGED
@@ -292,7 +292,10 @@ export function Panel({
292
  // showCaptions ? `-mt-11` : ''
293
  )}
294
  />}
295
- {process.env.NEXT_PUBLIC_CAN_REDRAW === "true" ? <div
 
 
 
296
  className={cn(`relative -mt-14 ml-4`,)}>
297
  <div className="flex flex-row">
298
  <div
@@ -311,7 +314,9 @@ export function Panel({
311
  <span className="text-base">Redraw</span>
312
  </div>
313
  </div>
314
- </div> : null}
 
 
315
  </div>
316
  )
317
  }
 
292
  // showCaptions ? `-mt-11` : ''
293
  )}
294
  />}
295
+ {
296
+ // there is an issue, this env check doesn't work..
297
+ // process.env.NEXT_PUBLIC_CAN_REDRAW === "true" ?
298
+ <div
299
  className={cn(`relative -mt-14 ml-4`,)}>
300
  <div className="flex flex-row">
301
  <div
 
314
  <span className="text-base">Redraw</span>
315
  </div>
316
  </div>
317
+ </div>
318
+ //: null
319
+ }
320
  </div>
321
  )
322
  }