Skip to content

Instantly share code, notes, and snippets.

View SETIADEEPANSHU's full-sized avatar
💭
Lets solve a problem together :)

Deepanshu Setia SETIADEEPANSHU

💭
Lets solve a problem together :)
View GitHub Profile
# Run file -> python api.py
from fastapi import FastAPI # pip install fastapi
from haystack.document_store.elasticsearch import ElasticsearchDocumentStore
from haystack.retriever.dense import DensePassageRetriever
from haystack.reader.farm import FARMReader
from haystack.pipeline import ExtractiveQAPipeline
# initialize doc store, retriever and reader components
DOC_STORE = ElasticsearchDocumentStore(
host='localhost', username='', password='', index='aurelius'
@SETIADEEPANSHU
SETIADEEPANSHU / tutorial1_basic_qa_pipeline.ipynb
Created February 9, 2022 09:07
Tutorial1_Basic_QA_Pipeline.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SETIADEEPANSHU
SETIADEEPANSHU / retriever.ipynb
Created February 9, 2022 09:01
retriever.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SETIADEEPANSHU
SETIADEEPANSHU / data-exploration.ipynb
Created May 28, 2021 13:36
Data Exploration.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: rgb_dl.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
import json
import trt_pose.coco
import torch
import torch2trt
from torch2trt import TRTModule
#import cv2
import torchvision.transforms as transforms
import PIL.Image
from trt_pose.parse_objects import ParseObjects
import os.path
name: "oNet"
layer {
name: "data"
type: "Input"
top: "data"
input_param {
shape: {
dim: 1
dim: 3
dim: 48
import argparse
# import logging
import sys
import time
import glob
# import os
# os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
# from tf_pose import common
import cv2
from tf_pose.estimator import TfPoseEstimator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.