Commit
Β·
85f82d3
1
Parent(s):
ce40b40
Refactor UI structure and add image tab
Browse files- app.py +4 -1
- 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(
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
| 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()
|