Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -270,7 +270,7 @@ def infer(image_input):
|
|
| 270 |
|
| 271 |
gr.Info('Calling CLIP Interrogator ...')
|
| 272 |
|
| 273 |
-
yield None, None, None,
|
| 274 |
clipi_result = clipi_client.predict(
|
| 275 |
image=handle_file(image_input),
|
| 276 |
mode="best",
|
|
@@ -285,7 +285,7 @@ def infer(image_input):
|
|
| 285 |
result = llama_gen_fragrance(llama_q)
|
| 286 |
|
| 287 |
print(f"Llama2 result: {result}")
|
| 288 |
-
yield result, None, None,
|
| 289 |
|
| 290 |
parsed = parse_perfume_description(result)
|
| 291 |
image_desc = extract_field(parsed, "Image Description")
|
|
|
|
| 270 |
|
| 271 |
gr.Info('Calling CLIP Interrogator ...')
|
| 272 |
|
| 273 |
+
yield None, None, None, gr.update()
|
| 274 |
clipi_result = clipi_client.predict(
|
| 275 |
image=handle_file(image_input),
|
| 276 |
mode="best",
|
|
|
|
| 285 |
result = llama_gen_fragrance(llama_q)
|
| 286 |
|
| 287 |
print(f"Llama2 result: {result}")
|
| 288 |
+
yield result, None, None, gr.update()
|
| 289 |
|
| 290 |
parsed = parse_perfume_description(result)
|
| 291 |
image_desc = extract_field(parsed, "Image Description")
|