screenshots, readme,relays

This commit is contained in:
2023-10-30 23:46:57 +01:00
parent d1199397c2
commit aead2e432b
4 changed files with 29 additions and 6 deletions

View File

@@ -10,8 +10,34 @@ Combining [nostr](https://nostr.net) with [standard template construct](https://
- Add links to sources in replies
- Package in a simply deployable way
## Demo
![image](./screenshot1.png)
## How to run
tbd
### Manually
```
git clone https://github.com/aljazceru/sciencestr
cd sciencestr
# install dependencies
pip install requirements-api.txt
pip install requirements-bot.txt
# configure cybrex to use openai
cybrex - write-config -l openai --force
export OPENAI_API_KEY="<insert your key>"
docker run -d --name ipfs_host -v ./ipfs/staging/:/export -v .ipfs/data:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:latest
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
python science-bot.py
python api.py
```
### Docker-compose
(to be fixed)
```
git clone https://github.com/aljazceru/sciencestr
cd sciencestr
docker-compose up
```
## Demo
![image](./screenshot2.png)
![image](./screenshot3.png)

View File

@@ -17,12 +17,9 @@ client = Client(keys)
client.add_relay("wss://relay.damus.io")
client.add_relay("wss://nostr.mom")
client.add_relay("wss://nostr.oxtr.dev")
client.add_relay("wss://purplepag.es")
client.add_relay("wss://a.nos.lol")
client.add_relay("wss://nostr-01.bolt.observer")
client.add_relay("wss://e.nos.lol")
client.add_relay("wss://nostr-pub.semisol.dev")
client.add_relay("wss://relay.snort.social")
client.connect()
filter = Filter().pubkey(pk).kind(4).since(Timestamp.now())

BIN
screenshot2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
screenshot3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 KiB