trojblue commited on
Commit
132d7fb
·
1 Parent(s): 618b677

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -133,11 +133,6 @@ with gr.Blocks(title="PixAI Tagger v0.9 — Demo", fill_height=True) as demo:
133
  Downloads model assets from **pixai-labs/pixai-tagger-v0.9** on first run,
134
  then uses your imported `EndpointHandler` to predict **general**, **character**, and **IP** tags.
135
 
136
- **Expected local filenames** (kept unchanged):
137
- - `model_v0.9.pth`
138
- - `tags_v0.9_13k.json`
139
- - `char_ip_map.json`
140
-
141
  Configure via env vars:
142
  - `ASSETS_REPO_ID` (default: `pixai-labs/pixai-tagger-v0.9`)
143
  - `ASSETS_REVISION` (optional)
@@ -156,7 +151,7 @@ with gr.Blocks(title="PixAI Tagger v0.9 — Demo", fill_height=True) as demo:
156
 
157
  with gr.Row(variant="panel"):
158
  with gr.Column(scale=2):
159
- image = gr.Image(label="Upload image", type="pil", visible=True)
160
  url = gr.Textbox(label="Image URL", placeholder="https://…", visible=False)
161
 
162
  def toggle_inputs(choice):
 
133
  Downloads model assets from **pixai-labs/pixai-tagger-v0.9** on first run,
134
  then uses your imported `EndpointHandler` to predict **general**, **character**, and **IP** tags.
135
 
 
 
 
 
 
136
  Configure via env vars:
137
  - `ASSETS_REPO_ID` (default: `pixai-labs/pixai-tagger-v0.9`)
138
  - `ASSETS_REVISION` (optional)
 
151
 
152
  with gr.Row(variant="panel"):
153
  with gr.Column(scale=2):
154
+ image = gr.Image(label="Upload image", type="pil", visible=True, height="500px")
155
  url = gr.Textbox(label="Image URL", placeholder="https://…", visible=False)
156
 
157
  def toggle_inputs(choice):