Spaces:
Running
Running
martintomov
commited on
Commit
•
c382f0d
1
Parent(s):
6286aa4
Set the API key before making the request
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ async def submit_ic_light_bria(image_data, positive_prompt, negative_prompt, lig
|
|
29 |
retries = 3
|
30 |
for attempt in range(retries):
|
31 |
try:
|
|
|
32 |
handler = await fal_client.submit_async(
|
33 |
"comfy/martintmv-git/ic-light-bria",
|
34 |
arguments={
|
@@ -37,8 +38,7 @@ async def submit_ic_light_bria(image_data, positive_prompt, negative_prompt, lig
|
|
37 |
"Negative Prompt": negative_prompt,
|
38 |
"lightsource_start_color": lightsource_start_color,
|
39 |
"lightsource_end_color": lightsource_end_color
|
40 |
-
}
|
41 |
-
credentials={"fal_key": FAL_KEY}
|
42 |
)
|
43 |
|
44 |
log_index = 0
|
@@ -74,14 +74,14 @@ async def submit_sdxl_rembg(image_data, positive_prompt, negative_prompt):
|
|
74 |
retries = 3
|
75 |
for attempt in range(retries):
|
76 |
try:
|
|
|
77 |
handler = await fal_client.submit_async(
|
78 |
"comfy/martintmv-git/sdxl-depthanything-rembg",
|
79 |
arguments={
|
80 |
"loadimage_1": image_data,
|
81 |
"Positive prompt": positive_prompt,
|
82 |
"Negative prompt": negative_prompt
|
83 |
-
}
|
84 |
-
credentials={"fal_key": FAL_KEY}
|
85 |
)
|
86 |
|
87 |
log_index = 0
|
@@ -117,6 +117,7 @@ async def submit_sv3d(image_data, fps, loop_frames_count, gif_loop):
|
|
117 |
retries = 3
|
118 |
for attempt in range(retries):
|
119 |
try:
|
|
|
120 |
handler = await fal_client.submit_async(
|
121 |
"comfy/martintmv-git/sv3d",
|
122 |
arguments={
|
|
|
29 |
retries = 3
|
30 |
for attempt in range(retries):
|
31 |
try:
|
32 |
+
fal_client.set_api_key(FAL_KEY) # Set the API key before making the request
|
33 |
handler = await fal_client.submit_async(
|
34 |
"comfy/martintmv-git/ic-light-bria",
|
35 |
arguments={
|
|
|
38 |
"Negative Prompt": negative_prompt,
|
39 |
"lightsource_start_color": lightsource_start_color,
|
40 |
"lightsource_end_color": lightsource_end_color
|
41 |
+
}
|
|
|
42 |
)
|
43 |
|
44 |
log_index = 0
|
|
|
74 |
retries = 3
|
75 |
for attempt in range(retries):
|
76 |
try:
|
77 |
+
fal_client.set_api_key(FAL_KEY) # Set the API key before making the request
|
78 |
handler = await fal_client.submit_async(
|
79 |
"comfy/martintmv-git/sdxl-depthanything-rembg",
|
80 |
arguments={
|
81 |
"loadimage_1": image_data,
|
82 |
"Positive prompt": positive_prompt,
|
83 |
"Negative prompt": negative_prompt
|
84 |
+
}
|
|
|
85 |
)
|
86 |
|
87 |
log_index = 0
|
|
|
117 |
retries = 3
|
118 |
for attempt in range(retries):
|
119 |
try:
|
120 |
+
fal_client.set_api_key(FAL_KEY) # Set the API key before making the request
|
121 |
handler = await fal_client.submit_async(
|
122 |
"comfy/martintmv-git/sv3d",
|
123 |
arguments={
|