Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Jun 18, 2024
1 parent 66aad37 commit fb29bd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/getting_started/example2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
content_id = client.upload_file("audiosummary", "sample.mp3")

client.wait_for_extraction(content_id)
client.get_extracted_content(content_id)
print("transcription ----")
print(client.get_extracted_content(content_id, "audiosummary", "transcription"))
print("summary ----")
print(client.get_extracted_content(content_id, "audiosummary", "summarizer"))


context = client.search_index(name="audiosummary.minilml6.embedding", query="President of America", top_k=1)
Expand Down
4 changes: 2 additions & 2 deletions examples/getting_started/example3.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
content_id = client.upload_file("imageknowledgebase", "sample.jpg")

client.wait_for_extraction(content_id)
client.get_extracted_content(content_id)
client.get_extracted_content(content_id, "imageknowledgebase", "object_detection")

print(client.sql_query("select * from imageknowledgebase where object_name='skateboard';"))
print(client.sql_query("select * from imageknowledgebase where object_name='person';"))

0 comments on commit fb29bd2

Please sign in to comment.