Yuanshi commited on
Commit
7d0b2ce
·
verified ·
1 Parent(s): 64d8bae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -99,23 +99,23 @@ header = """
99
  def create_app():
100
  with gr.Blocks() as app:
101
  gr.Markdown(header)
102
- with gr.Tabs():
103
- with gr.Tab("Subject-driven"):
104
- gr.Interface(
105
- fn=process_image_and_text,
106
- inputs=[
107
- gr.Image(type="pil", label="Condition Image", width=300),
108
- gr.Radio(
109
- [("512", 512), ("1024(beta)", 1024)],
110
- label="Resolution",
111
- value=512,
112
- ),
113
- # gr.Slider(4, 16, 4, step=4, label="Inference Steps"),
114
- gr.Textbox(lines=2, label="Text Prompt"),
115
- ],
116
- outputs=gr.Image(type="pil"),
117
- examples=get_samples(),
118
- )
119
  # with gr.Tab("Fill"):
120
  # gr.Markdown("Coming soon")
121
  # with gr.Tab("Canny"):
 
99
  def create_app():
100
  with gr.Blocks() as app:
101
  gr.Markdown(header)
102
+ # with gr.Tabs():
103
+ # with gr.Tab("Subject-driven"):
104
+ gr.Interface(
105
+ fn=process_image_and_text,
106
+ inputs=[
107
+ gr.Image(type="pil", label="Condition Image", width=300),
108
+ gr.Radio(
109
+ [("512", 512), ("1024(beta)", 1024)],
110
+ label="Resolution",
111
+ value=512,
112
+ ),
113
+ # gr.Slider(4, 16, 4, step=4, label="Inference Steps"),
114
+ gr.Textbox(lines=2, label="Text Prompt"),
115
+ ],
116
+ outputs=gr.Image(type="pil"),
117
+ examples=get_samples(),
118
+ )
119
  # with gr.Tab("Fill"):
120
  # gr.Markdown("Coming soon")
121
  # with gr.Tab("Canny"):