dwani 0.1.1__py3-none-any.whl → 0.1.2__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.
asr.py → dwani/asr.py RENAMED
@@ -1,5 +1,5 @@
1
1
  from .exceptions import DhwaniAPIError
2
-
2
+ import requests
3
3
  def asr_transcribe(client, file_path, language):
4
4
  with open(file_path, "rb") as f:
5
5
  files = {"file": f}
@@ -18,6 +18,8 @@ class ASR:
18
18
  from . import _get_client
19
19
  return _get_client().transcribe(*args, **kwargs)
20
20
 
21
+
22
+ '''
21
23
  from .docs import Documents
22
24
 
23
25
  class documents:
@@ -32,3 +34,4 @@ class documents:
32
34
  @staticmethod
33
35
  def summarize(file_path, language=None):
34
36
  return _get_client().document_summarize(file_path, language)
37
+ '''
@@ -1,5 +1,5 @@
1
1
  from .exceptions import DhwaniAPIError
2
-
2
+ import requests
3
3
  def audio_speech(client, input, voice, model, response_format="mp3", output_file=None):
4
4
  data = {
5
5
  "input": input,
chat.py → dwani/chat.py RENAMED
@@ -1,5 +1,5 @@
1
1
  from .exceptions import DhwaniAPIError
2
-
2
+ import requests
3
3
  def chat_create(client, prompt, **kwargs):
4
4
  resp = requests.post(
5
5
  f"{client.api_base}/chat",
@@ -5,7 +5,8 @@ from .exceptions import DhwaniAPIError
5
5
  class DhwaniClient:
6
6
  def __init__(self, api_key=None, api_base=None):
7
7
  self.api_key = api_key or os.getenv("DHWANI_API_KEY")
8
- self.api_base = api_base or os.getenv("DHWANI_API_BASE", "http://localhost:7860")
8
+ self.api_base = "https://dwani-dwani-server-workshop.hf.space"
9
+ #self.api_base = api_base or os.getenv("DHWANI_API_BASE", "http://localhost:7860")
9
10
  if not self.api_key:
10
11
  raise ValueError("DHWANI_API_KEY not set")
11
12
 
@@ -1,5 +1,5 @@
1
1
  from .exceptions import DhwaniAPIError
2
-
2
+ import requests
3
3
  def vision_caption(client, file_path, length="short"):
4
4
  with open(file_path, "rb") as f:
5
5
  files = {"file": f}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dwani
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Multimodal AI server for Indian languages (speech, vision, LLMs, TTS, ASR, etc.)
5
5
  Author-email: sachin <python@dwani.ai>
6
6
  License: MIT License
@@ -31,12 +31,7 @@ Project-URL: Issues, https://github.com/dwani-ai/dwani-server/issues
31
31
  Requires-Python: >=3.10
32
32
  Description-Content-Type: text/markdown
33
33
  License-File: LICENSE
34
- Requires-Dist: fastapi>=0.95.0
35
- Requires-Dist: uvicorn[standard]>=0.22.0
36
- Requires-Dist: pydantic>=2.0.0
37
34
  Requires-Dist: requests>=2.25.0
38
- Requires-Dist: python-multipart>=0.0.5
39
- Requires-Dist: pydantic-settings>=2.0.0
40
35
  Dynamic: license-file
41
36
 
42
37
  # Dhwani Server
@@ -0,0 +1,13 @@
1
+ dwani/__init__.py,sha256=P2pyHkZ7JHn6lHSEbCdV4hjYAwCOXHN3RbsNIU0F5PE,1084
2
+ dwani/asr.py,sha256=Xe62t8dNQy9gRkn4LyjaagOXjKZ90aexYEL2D-oVP2U,1042
3
+ dwani/audio.py,sha256=lyFjYAv4EsDIHPbopv9Lf5LJIzuJEuoBO9H37TVGaUo,894
4
+ dwani/chat.py,sha256=xPfsWUmovkBfNdV1BWzVRPfvVM8sxAaaxMopq1OK7JE,523
5
+ dwani/client.py,sha256=t2Gzik9S8De3-3CHY2IdmwJTxkIEmqQZHoiGkkga7fQ,1546
6
+ dwani/docs.py,sha256=2B87KqshPl7-2gDJAJxdvcgmPWuC2IQ1FcsDIyeVJPg,2202
7
+ dwani/exceptions.py,sha256=qEN5ukqlnN7v-kHNEnISWFMpPMt6uTft9mPsTXJ4LVA,227
8
+ dwani/vision.py,sha256=xi9gVsL8MA8VQYXIV99uqKuxYfs1kWu4tvqzbe95F1Y,623
9
+ dwani-0.1.2.dist-info/licenses/LICENSE,sha256=IAD8tbwWZbPWHXgYjabHoMv0aaUzZUYzYiEbfhTCisY,1070
10
+ dwani-0.1.2.dist-info/METADATA,sha256=1VTsA00s9_Vzsm77wbbx6NYXi7p4kkWjiDIV0cVo7II,7765
11
+ dwani-0.1.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
12
+ dwani-0.1.2.dist-info/top_level.txt,sha256=AM5EhkyuO_EXQFR9JIxEV6tAYMCCyc-a1dLifpCGBUk,6
13
+ dwani-0.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1 @@
1
+ dwani
@@ -1,13 +0,0 @@
1
- __init__.py,sha256=P2pyHkZ7JHn6lHSEbCdV4hjYAwCOXHN3RbsNIU0F5PE,1084
2
- asr.py,sha256=lw3Wx53SZUtrrceBx6xCucYbobPF0SJ3gXgOByaYtaU,1019
3
- audio.py,sha256=ryqVidb_SB55v8UYMNJYG3juTz8v0bOcbWXkSQbAKPg,879
4
- chat.py,sha256=1SFD7sA7JSZH8BMWv-WJJSh0yFts-bDNttrcd1QOWj4,508
5
- client.py,sha256=p-M8sFbYQ7dG7tDjZtMf4AB93tgxXUutN1ruuCy44TE,1474
6
- docs.py,sha256=2B87KqshPl7-2gDJAJxdvcgmPWuC2IQ1FcsDIyeVJPg,2202
7
- exceptions.py,sha256=qEN5ukqlnN7v-kHNEnISWFMpPMt6uTft9mPsTXJ4LVA,227
8
- vision.py,sha256=1qU4XQd4QRC1hON4sUaF3jhJ4nxIpZjowY0UsylpyAk,608
9
- dwani-0.1.1.dist-info/licenses/LICENSE,sha256=IAD8tbwWZbPWHXgYjabHoMv0aaUzZUYzYiEbfhTCisY,1070
10
- dwani-0.1.1.dist-info/METADATA,sha256=Brh6H0PUAvKaIkOAAlgjvUS54GHz7RZlwPC7q2w4ojE,7947
11
- dwani-0.1.1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
12
- dwani-0.1.1.dist-info/top_level.txt,sha256=7MBQ5IZg4CXEAt-rxOplIWS0HQcybyibcos1F-zrfOY,54
13
- dwani-0.1.1.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- __init__
2
- asr
3
- audio
4
- chat
5
- client
6
- docs
7
- exceptions
8
- vision
File without changes
File without changes
File without changes