Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def compute_embedding(title, description, tags, thumbnail_url):
|
|
| 126 |
# --- NEW: Pure Gradio Interface + Launch (remove FastAPI entirely) ---
|
| 127 |
def gradio_fn(title, description, tags, thumbnail_url):
|
| 128 |
emb = compute_embedding(title, description, tags, thumbnail_url)
|
| 129 |
-
return
|
| 130 |
|
| 131 |
# Create the interface (same as before)
|
| 132 |
demo = gr.Interface( # Renamed from gr_interface for clarity
|
|
|
|
| 126 |
# --- NEW: Pure Gradio Interface + Launch (remove FastAPI entirely) ---
|
| 127 |
def gradio_fn(title, description, tags, thumbnail_url):
|
| 128 |
emb = compute_embedding(title, description, tags, thumbnail_url)
|
| 129 |
+
return emb # Returns the full list directly—Gradio stringifies it cleanly
|
| 130 |
|
| 131 |
# Create the interface (same as before)
|
| 132 |
demo = gr.Interface( # Renamed from gr_interface for clarity
|