multimodalart HF staff commited on
Commit
ec3b96a
1 Parent(s): 684507f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ with gr.Blocks() as demo:
4
+ gr.Markdown("# CosXL unofficial demo")
5
+ with gr.Tab("CosXL"):
6
+ with gr.Group():
7
+ with gr.Row():
8
+ prompt_normal = gr.Textbox(show_label=False, scale=4, placeholder="Your prompt, e.g.: backlit photography of a dog")
9
+ button_normal = gr.Button("Generate", min_width=120)
10
+ output_normal = gr.Image(label="Your result image", interactive=False)
11
+ with gr.Accordion("Advanced Settings", open=False):
12
+ pass
13
+ with gr.Tab("CosXL Edit"):
14
+ with gr.Group():
15
+ image_edit = gr.Image(label="Image you would like to edit")
16
+ with gr.Row():
17
+ prompt_edit = gr.Textbox(show_label=False, scale=4, placeholder="Edit instructions, e.g.: Make the day cloudy")
18
+ button_edit = gr.Button("Generate", min_width=120)
19
+ output_edit = gr.Image(label="Your result image", interactive=False)
20
+ with gr.Accordion("Advanced Settings", open=False):
21
+ pass
22
+
23
+ if __name__ == "__main__":
24
+ demo.launch()