Thank you very much for this tutorial! I was having many problems running the ollama server on colab without the colabxterm... You're such a life saver!
thank you I was studying something related, but my computer's performance was very poor due to lack of money. I had a problem with ollama not working in Colab, but it was resolved! thank you I would like to test a model created in Colab. Is there a way to temporarily run it as a web service?
Most welcome. Great and glad to hear that finally it worked. 1. Of course we can use the flask API and ColabCode package to serve your mode via endpoint in ngrok temporary URL. github.com/abhishekkrthakur/colabcode 2. And another way is using flask and flask-ngrok. pypi.org/project/flask-ngrok/ pypi.org/project/Flask-API/ Sample code for reference: from flask import Flask from flask_ngrok import run_with_ngrok app = Flask(__name__) run_with_ngrok(app) @app.route("/") def home(): return "Hello World" app.run() If needed I'll try to do a tuto on this topic in future. Hope this helps:)
Thank you very much for this tutorial! I was having many problems running the ollama server on colab without the colabxterm... You're such a life saver!
You are most welcome!
Glad it helped.
thanks for the tutorial
Happy to help
Great share, insightful share as always...Are u using obs studio for recording....by Senior Data Scientist....
Glad it helped.
Not really! Just using the built-in recording and iMovie to edit it.
thank you I was studying something related, but my computer's performance was very poor due to lack of money. I had a problem with ollama not working in Colab, but it was resolved! thank you I would like to test a model created in Colab. Is there a way to temporarily run it as a web service?
Most welcome.
Great and glad to hear that finally it worked.
1. Of course we can use the flask API and ColabCode package to serve your mode via endpoint in ngrok temporary URL.
github.com/abhishekkrthakur/colabcode
2. And another way is using flask and flask-ngrok.
pypi.org/project/flask-ngrok/
pypi.org/project/Flask-API/
Sample code for reference:
from flask import Flask
from flask_ngrok import run_with_ngrok
app = Flask(__name__)
run_with_ngrok(app)
@app.route("/")
def home():
return "Hello World"
app.run()
If needed I'll try to do a tuto on this topic in future.
Hope this helps:)
@@AboniaSojasingarayar thank you Have a nice day~