I used Gradio in the past few days and I am absolutely impressed. This tool is absolutely amazing, and so I had to write a blog article about it. I’d be curious what you think about my words, and if you consider it worth pushing this project to Hugging Face Spaces. I am not sure, if I can run the ElasticSearch database there. What do you think?
Pinging @abidlabs here, thanks a lot for the love
I shared your blog here.
I talked to team at deepset and smaller examples like below one should work:
# In Colab / No Docker environments: Start Elasticsearch from source
! wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.2-linux-x86_64.tar.gz -q
! tar -xzf elasticsearch-7.9.2-linux-x86_64.tar.gz
! chown -R daemon:daemon elasticsearch-7.9.2
import os
from subprocess import Popen, PIPE, STDOUT
es_server = Popen(
["elasticsearch-7.9.2/bin/elasticsearch"], stdout=PIPE, stderr=STDOUT, preexec_fn=lambda: os.setuid(1) # as daemon
)
# wait until ES has started
! sleep 30
You can put elastic search package in packages.txt file in your Space (never tried this though)
We will be supporting docker containers soon in Spaces.
But do try and let us know if it works or not