Spaces:
Running
Running
from src.fal_api import fal_ipadapter_api | |
import gradio as gr | |
def create_ipadaptor_tab(): | |
with gr.TabItem("Cloth IP Adapter",id="cloth_ip_adapter"): | |
with gr.Row(): | |
with gr.Column(): | |
api_inp = gr.Image(label="Base Image") | |
ap_prompt = gr.Textbox(label="clothe prompt") | |
with gr.Column(): | |
ap_image = gr.Image(label="IP Adapter Image") | |
ap_btn = gr.Button("Process") | |
with gr.Row(): | |
api_out = gr.Image(label="Output",type="filepath") | |
ap_btn.click(fal_ipadapter_api,inputs=[api_inp,ap_image,ap_prompt],outputs=api_out) |