Skip to content

Instantly share code, notes, and snippets.

FROM python:latest
RUN pip install ray
EXPOSE 80
RUN ray start --head --port=80
@genderev
genderev / app.py
Last active September 11, 2021 16:26
from flask import Flask, request
from transformers import pipeline
import sys
app = Flask(__name__)
summarizer = pipeline("summarization")
@app.route('/')
def hello():

Keybase proof

I hereby claim:

  • I am genderev on github.
  • I am johanliebert (https://keybase.io/johanliebert) on keybase.
  • I have a public key ASBeMwcZX6LrrhZo6uNm_SAH2yli8nKevzQabF5pbdDWXQo

To claim this, I am signing this object:

@genderev
genderev / lightning.js
Created March 28, 2020 20:35
Trying to use LightningJS
<script type="text/javascript">
/*** the code from lightningjs-embed.min.js ***/
window.blockstack = lightningjs.require("blockstack", "//unpkg.com/blockstack@21.0.0/dist/blockstack.js");
</script>
//The thing is, I don't know how to actually use blockstack. I don't know the syntax to use.
//The example code from LightningJS for using third party code is
<script type="text/javascript">
/*** the code from lightningjs-embed.min.js goes here ***/