Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi committed Jul 28, 2024
1 parent 3a54fdf commit bc4ee4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ print(cookies)

### Setup Gemini

<details>
<details open>
<summary>Sync</summary>

```python
Expand Down Expand Up @@ -111,7 +111,7 @@ asyncio.run(main())
### Ask a Message


<details>
<details open>
<summary>Sync</summary>

```python
Expand All @@ -133,7 +133,7 @@ print(res['text'])


### Ask continuous message
<details>
<details open>
<summary>Sync</summary>

```python
Expand Down Expand Up @@ -168,11 +168,12 @@ while True:

### Text to Voice

<details>
<details open>
<summary>Sync</summary>

```python
res = gemini.speech("hello")
#res = gemini.speech("hello", lang_code="en")
with open("a.wav", "wb") as f:
f.write(res)
```
Expand All @@ -185,6 +186,7 @@ with open("a.wav", "wb") as f:
```python
import aiofiles #pip install aiofiles
res = await gemini.speech("hello")
#res = gemini.speech("hello", lang_code="en")
async with aiofiles.open("a.wav", mode='wb') as f:
await f.write(res)
```
Expand All @@ -194,7 +196,7 @@ async with aiofiles.open("a.wav", mode='wb') as f:

### Ask with Photo

<details>
<details open>
<summary>Sync</summary>

```python
Expand Down Expand Up @@ -234,7 +236,7 @@ print(res['text'])

### Save Response Images

<details>
<details open>
<summary>Sync</summary>

```python
Expand Down Expand Up @@ -280,7 +282,7 @@ for url in res['image_urls']:

### Save Generated Images

<details>
<details open>
<summary>Sync</summary>

```python
Expand Down Expand Up @@ -322,7 +324,7 @@ for url in res['generated_image_urls']:

### Get Sharable URL

<details>
<details open>
<summary>Sync</summary>

```python
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_long_description():
#
setup(
name="geminikit",
version="1.1.6",
version="1.1.7",
author="paviththanan",
author_email="rkpavi06@gmail.com",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit bc4ee4a

Please sign in to comment.