Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
•
73ad0bf
1
Parent(s):
844cfac
chore: Refactor CUDA device usage in app.py
Browse files- app.py +2 -2
- requirements.txt +0 -2
app.py
CHANGED
@@ -106,7 +106,7 @@ def resize_without_crop(image, target_width, target_height):
|
|
106 |
@spaces.GPU()
|
107 |
def interrogator_process(x):
|
108 |
image_description = wd14tagger.default_interrogator(x)
|
109 |
-
return image_description
|
110 |
|
111 |
|
112 |
@spaces.GPU()
|
@@ -273,7 +273,7 @@ with block:
|
|
273 |
prompt_gen_button.click(
|
274 |
fn=interrogator_process,
|
275 |
inputs=[input_fg],
|
276 |
-
outputs=[prompt
|
277 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=False)],
|
278 |
outputs=[prompt_gen_button, key_gen_button, i2v_end_btn])
|
279 |
|
|
|
106 |
@spaces.GPU()
|
107 |
def interrogator_process(x):
|
108 |
image_description = wd14tagger.default_interrogator(x)
|
109 |
+
return image_description
|
110 |
|
111 |
|
112 |
@spaces.GPU()
|
|
|
273 |
prompt_gen_button.click(
|
274 |
fn=interrogator_process,
|
275 |
inputs=[input_fg],
|
276 |
+
outputs=[prompt]
|
277 |
).then(lambda: [gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=False)],
|
278 |
outputs=[prompt_gen_button, key_gen_button, i2v_end_btn])
|
279 |
|
requirements.txt
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
diffusers==0.28.0
|
2 |
transformers==4.41.1
|
3 |
gradio==4.31.5
|
4 |
-
bitsandbytes==0.43.1
|
5 |
accelerate==0.30.1
|
6 |
protobuf==3.20
|
7 |
opencv-python
|
@@ -15,5 +14,4 @@ xformers
|
|
15 |
onnxruntime
|
16 |
av
|
17 |
torchvision
|
18 |
-
xformers
|
19 |
spaces
|
|
|
1 |
diffusers==0.28.0
|
2 |
transformers==4.41.1
|
3 |
gradio==4.31.5
|
|
|
4 |
accelerate==0.30.1
|
5 |
protobuf==3.20
|
6 |
opencv-python
|
|
|
14 |
onnxruntime
|
15 |
av
|
16 |
torchvision
|
|
|
17 |
spaces
|