tumblrbot 1.10.0__py3-none-any.whl → 1.10.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tumblrbot/flow/fine_tune.py +3 -2
- {tumblrbot-1.10.0.dist-info → tumblrbot-1.10.1.dist-info}/METADATA +17 -12
- {tumblrbot-1.10.0.dist-info → tumblrbot-1.10.1.dist-info}/RECORD +6 -6
- {tumblrbot-1.10.0.dist-info → tumblrbot-1.10.1.dist-info}/WHEEL +0 -0
- {tumblrbot-1.10.0.dist-info → tumblrbot-1.10.1.dist-info}/entry_points.txt +0 -0
- {tumblrbot-1.10.0.dist-info → tumblrbot-1.10.1.dist-info}/top_level.txt +0 -0
tumblrbot/flow/fine_tune.py
CHANGED
|
@@ -136,5 +136,6 @@ class FineTuner(FlowClass):
|
|
|
136
136
|
yield 4 + len(encoding.encode(message.content))
|
|
137
137
|
|
|
138
138
|
def get_cost_string(self, total_tokens: int) -> str:
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
usd_cost = self.config.token_price / 1000000 * total_tokens
|
|
140
|
+
local_cost = currency(CurrencyConverter().convert(usd_cost, "USD", localeconv()["int_curr_symbol"].strip()), grouping=True)
|
|
141
|
+
return f"{usd_cost:.3} USD (~{local_cost})"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tumblrbot
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.1
|
|
4
4
|
Summary: An updated bot that posts to Tumblr, based on your very own blog!
|
|
5
5
|
Project-URL: Funding, https://ko-fi.com/maidscientistizutsumimarin
|
|
6
6
|
Project-URL: Source, https://github.com/MaidScientistIzutsumiMarin/tumblrbot
|
|
@@ -18,7 +18,6 @@ Requires-Dist: tomlkit
|
|
|
18
18
|
|
|
19
19
|
# tumblrbot
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
[OAuth]: https://oauth.net/1
|
|
23
22
|
[Python]: https://python.org/download
|
|
24
23
|
|
|
@@ -51,6 +50,19 @@ Requires-Dist: tomlkit
|
|
|
51
50
|
[Fine-Tuning]: #manual-fine-tuning
|
|
52
51
|
[](https://python.org/pypi/tumblrbot)
|
|
53
52
|
|
|
53
|
+
## Installation & Usage
|
|
54
|
+
|
|
55
|
+
1. Install the latest version of [Python]:
|
|
56
|
+
- Windows: `winget install python3`
|
|
57
|
+
- Linux (apt): `apt install python-pip`
|
|
58
|
+
- Linux (pacman): `pacman install python-pip`
|
|
59
|
+
1. Install the [pip] package: `pip install tumblrbot`
|
|
60
|
+
- Alternatively, you can install from this repository: `pip install git+https://github.com/MaidScientistIzutsumiMarin/tumblrbot.git`
|
|
61
|
+
- On Linux, you will have to make a virtual environment or use the flag to install packages system-wide.
|
|
62
|
+
1. Run `tumblrbot` from anywhere. Run `tumblrbot --help` for command-line options. Every command-line option corresponds to a value from the [config][configurable].
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
54
66
|
Description of original project:
|
|
55
67
|
> 4tv-tumblrbot was a collaborative project I embarked on with my close friend Dima, who goes by @smoqueen on Tumblr. The aim of this endeavor was straightforward yet silly: to develop a Tumblr bot powered by a machine-learning model. This bot would be specifically trained on the content from a particular Tumblr blog or a selected set of blogs, allowing it to mimic the style, tone, and thematic essence of the original posts.
|
|
56
68
|
|
|
@@ -96,19 +108,12 @@ Features:
|
|
|
96
108
|
**To-Do:**
|
|
97
109
|
|
|
98
110
|
- Add selection menus to make it easier to pick a particular operation.
|
|
111
|
+
- Add retrying to the fine-tuning process (if necessary).
|
|
112
|
+
- Add an option to filter newest posts by a specific date.
|
|
99
113
|
|
|
100
114
|
**Please submit an issue or contact us for features you want added/reimplemented.**
|
|
101
115
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
1. Install the latest version of [Python]:
|
|
105
|
-
- Windows: `winget install python3`
|
|
106
|
-
- Linux (apt): `apt install python-pip`
|
|
107
|
-
- Linux (pacman): `pacman install python-pip`
|
|
108
|
-
1. Install the [pip] package: `pip install tumblrbot`
|
|
109
|
-
- Alternatively, you can install from this repository: `pip install git+https://github.com/MaidScientistIzutsumiMarin/tumblrbot.git`
|
|
110
|
-
- On Linux, you will have to make a virtual environment or use the flag to install packages system-wide.
|
|
111
|
-
1. Run `tumblrbot` from anywhere. Run `tumblrbot --help` for command-line options. Every command-line option corresponds to a value from the [config][configurable].
|
|
116
|
+
---
|
|
112
117
|
|
|
113
118
|
## Obtaining Tokens
|
|
114
119
|
|
|
@@ -3,14 +3,14 @@ tumblrbot/__main__.py,sha256=19p7kIMBfEXFRGOJdMGhriPkoLQ9Pi5fOzqYowr_s-M,1819
|
|
|
3
3
|
tumblrbot/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tumblrbot/flow/download.py,sha256=SYO235ztgXXnh4BNoy_o3MwEd4k73LIIAI0eTxtQBfI,1997
|
|
5
5
|
tumblrbot/flow/examples.py,sha256=-jqLGGuQOT85g2xt7xb_XbudCZKB-Nuf5nygTpIuH5Y,4308
|
|
6
|
-
tumblrbot/flow/fine_tune.py,sha256=
|
|
6
|
+
tumblrbot/flow/fine_tune.py,sha256=ZdXRvGZ7prgkwrnjpxzEOGQpxx35k9FbpPPpXED_26M,5673
|
|
7
7
|
tumblrbot/flow/generate.py,sha256=b-MO5jxISPbJUcXZ1H1YPt_-O5a9RI9LWB24SLcydGo,4256
|
|
8
8
|
tumblrbot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
tumblrbot/utils/common.py,sha256=o1T-hmMZw7fbzJVMHtCLJ--HxLZ-sRuXSNWjCIwKlbA,1859
|
|
10
10
|
tumblrbot/utils/models.py,sha256=qy5ejzQjI0e7aGgvkqTfRPDHF-Ckf0VykPdlwHW5UPE,10835
|
|
11
11
|
tumblrbot/utils/tumblr.py,sha256=pOtcgq58mC_5oBa9LH_SDJlRTg3_euzQjp1KArDO0O8,2982
|
|
12
|
-
tumblrbot-1.10.
|
|
13
|
-
tumblrbot-1.10.
|
|
14
|
-
tumblrbot-1.10.
|
|
15
|
-
tumblrbot-1.10.
|
|
16
|
-
tumblrbot-1.10.
|
|
12
|
+
tumblrbot-1.10.1.dist-info/METADATA,sha256=ZeFDRmke5YpinsQpq40M6_yzawWwW1kznkWfNxi31aw,13528
|
|
13
|
+
tumblrbot-1.10.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
tumblrbot-1.10.1.dist-info/entry_points.txt,sha256=1UrMpccLrT88RIDNCSm9uocdRcVgEpHQWYIVnVpJWnI,54
|
|
15
|
+
tumblrbot-1.10.1.dist-info/top_level.txt,sha256=nZBBqnmypfVVkZojtb6afxQqBg8mFD8adlT5ur40r4s,10
|
|
16
|
+
tumblrbot-1.10.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|