Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -230,14 +230,6 @@ def process_qwen(image: Image.Image, category: str, prompt: str):
|
|
| 230 |
return json.dumps(objects_result, indent=2), objects_result
|
| 231 |
return "Invalid category", {}
|
| 232 |
|
| 233 |
-
def on_category_change(category):
|
| 234 |
-
"""Update placeholder text when category changes."""
|
| 235 |
-
return gr.Textbox(
|
| 236 |
-
value="",
|
| 237 |
-
placeholder=PLACEHOLDERS.get(category, ""),
|
| 238 |
-
interactive=True,
|
| 239 |
-
)
|
| 240 |
-
|
| 241 |
def process_inputs(image, category, prompt):
|
| 242 |
if image is None:
|
| 243 |
raise gr.Error("Please upload an image.")
|
|
|
|
| 230 |
return json.dumps(objects_result, indent=2), objects_result
|
| 231 |
return "Invalid category", {}
|
| 232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
def process_inputs(image, category, prompt):
|
| 234 |
if image is None:
|
| 235 |
raise gr.Error("Please upload an image.")
|