Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ LABEL_FILENAME = "selected_tags.csv"
|
|
40 |
def parse_args() -> argparse.Namespace:
|
41 |
parser = argparse.ArgumentParser()
|
42 |
parser.add_argument("--score-slider-step", type=float, default=0.05)
|
43 |
-
parser.add_argument("--score-general-threshold", type=float, default=0.
|
44 |
parser.add_argument("--score-character-threshold", type=float, default=1.0)
|
45 |
return parser.parse_args()
|
46 |
|
@@ -253,6 +253,10 @@ def main():
|
|
253 |
file_types=["image"], label="Upload Images", file_count="multiple",
|
254 |
)
|
255 |
|
|
|
|
|
|
|
|
|
256 |
# Wrap the model selection and sliders in an Accordion
|
257 |
with gr.Accordion("Advanced Settings", open=False): # Collapsible by default
|
258 |
model_repo = gr.Dropdown(
|
@@ -273,9 +277,6 @@ def main():
|
|
273 |
lines=9
|
274 |
)
|
275 |
|
276 |
-
submit = gr.Button(
|
277 |
-
value="Process Images", variant="primary"
|
278 |
-
)
|
279 |
|
280 |
with gr.Column():
|
281 |
output = gr.Textbox(label="Output", lines=10)
|
|
|
40 |
def parse_args() -> argparse.Namespace:
|
41 |
parser = argparse.ArgumentParser()
|
42 |
parser.add_argument("--score-slider-step", type=float, default=0.05)
|
43 |
+
parser.add_argument("--score-general-threshold", type=float, default=0.2)
|
44 |
parser.add_argument("--score-character-threshold", type=float, default=1.0)
|
45 |
return parser.parse_args()
|
46 |
|
|
|
253 |
file_types=["image"], label="Upload Images", file_count="multiple",
|
254 |
)
|
255 |
|
256 |
+
submit = gr.Button(
|
257 |
+
value="Process Images", variant="primary"
|
258 |
+
)
|
259 |
+
|
260 |
# Wrap the model selection and sliders in an Accordion
|
261 |
with gr.Accordion("Advanced Settings", open=False): # Collapsible by default
|
262 |
model_repo = gr.Dropdown(
|
|
|
277 |
lines=9
|
278 |
)
|
279 |
|
|
|
|
|
|
|
280 |
|
281 |
with gr.Column():
|
282 |
output = gr.Textbox(label="Output", lines=10)
|