mantrakp commited on
Commit
85f82d3
β€’
1 Parent(s): ce40b40

Refactor UI structure and add image tab

Browse files
Files changed (2) hide show
  1. app.py +4 -1
  2. src/ui/tabs/images/flux_tab.py +7 -5
app.py CHANGED
@@ -46,4 +46,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
46
  with gr.Tab(label="πŸ“„ Text"):
47
  gr.Label("Coming soon!")
48
 
49
- demo.launch(share=True)
 
 
 
 
46
  with gr.Tab(label="πŸ“„ Text"):
47
  gr.Label("Coming soon!")
48
 
49
+ demo.launch(
50
+ share=False,
51
+ debug=True,
52
+ )
src/ui/tabs/images/flux_tab.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
 
3
  def flux_tab():
4
- with gr.Column():
5
- prompt = gr.Textbox(lines=5, label="Prompt")
6
- with gr.Column():
7
- with gr.Group():
8
- output_image = gr.Image()
 
 
 
1
  import gradio as gr
2
 
3
  def flux_tab():
4
+ with gr.Row():
5
+ with gr.Column():
6
+ prompt = gr.Textbox(lines=5, label="Prompt")
7
+
8
+ with gr.Column():
9
+ with gr.Group():
10
+ output_image = gr.Image()