set up for proper repo crap
This commit is contained in:
parent
b72d422746
commit
bf40e4a3ca
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.env
|
||||||
|
__pycache__
|
||||||
|
.venv
|
@ -12,4 +12,4 @@ RUN pip install -r requirements.txt
|
|||||||
|
|
||||||
#RUN make html
|
#RUN make html
|
||||||
|
|
||||||
ENTRYPOINT ["python", "test.py"]
|
ENTRYPOINT ["python", "main.py"]
|
||||||
|
@ -1 +1 @@
|
|||||||
pandas
|
ollama
|
||||||
|
13
src/main.py
Normal file
13
src/main.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from ollama import Client
|
||||||
|
|
||||||
|
client = Client(host='http://192.168.178.45:11434')
|
||||||
|
|
||||||
|
user_prompt = input("Ask mistral-nemo a question: ")
|
||||||
|
|
||||||
|
response = client.chat(model='mistral-nemo', messages=[
|
||||||
|
{
|
||||||
|
'role': 'user',
|
||||||
|
'content': f'{user_prompt}',
|
||||||
|
},
|
||||||
|
])
|
||||||
|
print(response['message']['content'])
|
@ -1 +0,0 @@
|
|||||||
print("This is working")
|
|
0
src/trilium/__init__.py
Normal file
0
src/trilium/__init__.py
Normal file
8
src/trilium/get_token.py
Normal file
8
src/trilium/get_token.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from trilium_py.client import ETAPI
|
||||||
|
import os
|
||||||
|
|
||||||
|
server_url = f'{os.environ['TRILIUM_PROTOCOL']}://{os.environ['TRILIUM_HOST']}:{os.environ['TRILIUM_PORT']}'
|
||||||
|
password = os.environ['TRILIUM_PASS']
|
||||||
|
ea = ETAPI(server_url)
|
||||||
|
token = ea.login(password)
|
||||||
|
print(token)
|
Loading…
x
Reference in New Issue
Block a user