Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
a96c50b
1
Parent(s):
1fc77ce
Changed input file from PIL to filepath
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import fal_client
|
|
9 |
import requests
|
10 |
from typing import Dict, List, Tuple, Union, Optional
|
11 |
|
12 |
-
dotenv.load_dotenv()
|
13 |
FAL_KEY = os.getenv("FAL_KEY")
|
14 |
|
15 |
# Configure logging
|
@@ -329,7 +329,7 @@ def run_grounded_sam(
|
|
329 |
return [Image.new('RGB', (400, 300), color='gray'), Image.new('RGBA', (400, 300), color=(0, 0, 0, 0))]
|
330 |
|
331 |
def generate_ai_bg(input_img, prompt):
|
332 |
-
print(FAL_KEY)
|
333 |
handler = fal_client.submit(
|
334 |
"fal-ai/iclight-v2",
|
335 |
arguments={
|
@@ -363,7 +363,7 @@ def create_ui():
|
|
363 |
|
364 |
with gr.Row():
|
365 |
with gr.Column():
|
366 |
-
input_image = gr.Image(type="
|
367 |
prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here...")
|
368 |
run_button = gr.Button(value='Run')
|
369 |
|
|
|
9 |
import requests
|
10 |
from typing import Dict, List, Tuple, Union, Optional
|
11 |
|
12 |
+
# dotenv.load_dotenv()
|
13 |
FAL_KEY = os.getenv("FAL_KEY")
|
14 |
|
15 |
# Configure logging
|
|
|
329 |
return [Image.new('RGB', (400, 300), color='gray'), Image.new('RGBA', (400, 300), color=(0, 0, 0, 0))]
|
330 |
|
331 |
def generate_ai_bg(input_img, prompt):
|
332 |
+
# print('FAL_KEY = ', FAL_KEY)
|
333 |
handler = fal_client.submit(
|
334 |
"fal-ai/iclight-v2",
|
335 |
arguments={
|
|
|
363 |
|
364 |
with gr.Row():
|
365 |
with gr.Column():
|
366 |
+
input_image = gr.Image(type="filepath", label="image")
|
367 |
prompt = gr.Textbox(label="Prompt", placeholder="Enter your prompt here...")
|
368 |
run_button = gr.Button(value='Run')
|
369 |
|