Skip to content

Commit

Permalink
Configure for HF Spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
  • Loading branch information
Snehil-Shah committed Jan 8, 2024
1 parent ba6c86a commit 77d7e87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import gradio as gr
import os
from qdrant_client import QdrantClient
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("clip-ViT-B-32")

qdrant_client = QdrantClient(
url = 'url',
url = os.environ['QDRANT_URL'],
port= 443,
api_key = "key",
api_key = os.environ['QDRANT_API_KEY']
)

def search_images(modality, count, input_text, input_image):
Expand Down

0 comments on commit 77d7e87

Please sign in to comment.