nexaai 1.0.4rc13__cp310-cp310-win_amd64.whl → 1.0.4rc14__cp310-cp310-win_amd64.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.

Potentially problematic release.


This version of nexaai might be problematic. Click here for more details.

Binary file
nexaai/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is generated by CMake from _version.py.in
2
2
  # Do not modify this file manually - it will be overwritten
3
3
 
4
- __version__ = "1.0.4-rc13"
4
+ __version__ = "1.0.4-rc14"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -62,8 +62,8 @@ class DownloadProgressTracker:
62
62
  self.last_display_length = 0
63
63
 
64
64
  # Speed tracking
65
- self.last_downloaded = 0
66
- self.last_time = time.time()
65
+ self.last_downloaded = None # Use None to indicate no previous measurement
66
+ self.last_time = None # Use None to indicate no previous time measurement
67
67
  self.speed_history = []
68
68
  self.max_speed_history = 10
69
69
 
@@ -101,18 +101,27 @@ class DownloadProgressTracker:
101
101
  def calculate_speed(self, current_downloaded: int) -> float:
102
102
  """Calculate download speed in bytes per second."""
103
103
  current_time = time.time()
104
- time_diff = current_time - self.last_time
105
104
 
106
- if time_diff > 0 and self.last_downloaded > 0:
107
- bytes_diff = current_downloaded - self.last_downloaded
108
- speed = bytes_diff / time_diff
109
-
110
- # Add to speed history for smoothing
111
- self.speed_history.append(speed)
112
- if len(self.speed_history) > self.max_speed_history:
113
- self.speed_history.pop(0)
105
+ # Check if we have a previous measurement to compare against
106
+ if self.last_time is not None and self.last_downloaded is not None:
107
+ time_diff = current_time - self.last_time
114
108
 
115
- # Return smoothed speed
109
+ # Only calculate if we have a meaningful time difference (avoid division by very small numbers)
110
+ if time_diff > 0.5: # At least 500ms between measurements
111
+ bytes_diff = current_downloaded - self.last_downloaded
112
+
113
+ # Only calculate speed if bytes actually changed
114
+ if bytes_diff >= 0: # Allow 0 for periods with no progress
115
+ speed = bytes_diff / time_diff
116
+
117
+ # Add to speed history for smoothing
118
+ self.speed_history.append(speed)
119
+ if len(self.speed_history) > self.max_speed_history:
120
+ self.speed_history.pop(0)
121
+
122
+ # Return the average of historical speeds if we have any
123
+ # This ensures we show the last known speed even when skipping updates
124
+ if self.speed_history:
116
125
  return sum(self.speed_history) / len(self.speed_history)
117
126
 
118
127
  return 0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 1.0.4rc13
3
+ Version: 1.0.4rc14
4
4
  Summary: Python bindings for NexaSDK C-lib backend
5
5
  Author-email: "Nexa AI, Inc." <dev@nexa.ai>
6
6
  Project-URL: Homepage, https://github.com/NexaAI/nexasdk-bridge
@@ -1,6 +1,6 @@
1
1
  nexaai/__init__.py,sha256=d1bC_PUNduXYYPLrzKLyS0RapvcrKzLQGJREsoBZvXM,1977
2
- nexaai/_stub.cp310-win_amd64.pyd,sha256=bG8ot1cOKH_TxHDyUSwTDV8_EX7CZNzg9m9Ct-r5xwM,10752
3
- nexaai/_version.py,sha256=F0fwBUpI_XB5EnjfaxQUgzhflriF0jZ8Y2aXQLsPf3o,147
2
+ nexaai/_stub.cp310-win_amd64.pyd,sha256=AqYjxocL8y9D6PVMpNfrK8bjWlkh5QKtCE2nIG1ALJw,10752
3
+ nexaai/_version.py,sha256=uRRQiVCCiR6jdFwtfQT2hqN_HwM1guhUpuxR4tuqrL8,147
4
4
  nexaai/asr.py,sha256=1XnwbrSoweBfIVAH6LbILv0DMStTQe_Uq5U_f-EyArY,1873
5
5
  nexaai/base.py,sha256=qQBCiQVNzgpkQjZX9aiFDEdbAAe56TROKC3WnWra2Zg,1021
6
6
  nexaai/common.py,sha256=00cP8uT9NdldBI3dRNHrQFx-uhdgtOGGxRAx4p96nw4,1586
@@ -16,18 +16,18 @@ nexaai/asr_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  nexaai/asr_impl/mlx_asr_impl.py,sha256=UpGOtl4JZmcmDRa56z5OyIozFVjfsYpKw_vYU_7HoWk,3282
17
17
  nexaai/asr_impl/pybind_asr_impl.py,sha256=C0Qnx-WDNmyC72dxuZVfUwuAoUSMvpo8IfOOkEbqsFA,1493
18
18
  nexaai/binds/__init__.py,sha256=tYvy0pFhoY29GstDT5r-oRiPRarPLECvJAkcamJItOg,83
19
- nexaai/binds/common_bind.cp310-win_amd64.pyd,sha256=vkhfHfpXxexJ8WyG0ywOLTzBqaai6N-1NFNneo8d1_4,201216
20
- nexaai/binds/embedder_bind.cp310-win_amd64.pyd,sha256=vcrvVGXfR4Sztr5EScCKUo74ficwW2UbrKxostcbSRg,182784
21
- nexaai/binds/llm_bind.cp310-win_amd64.pyd,sha256=IkAJTCZ4cKijHnRykXxdplEuBDnZdty9lDpe161B88Q,160256
22
- nexaai/binds/nexa_bridge.dll,sha256=QemBCln56Ufmg2o2-dIWqYBvzgFBJhGUze0xu1vnA-M,176640
23
- nexaai/binds/nexa_llama_cpp/ggml-base.dll,sha256=Y1XivFm8RVuCPzasooUQQ9QOnWCF2HWQY9t03-ao8_M,513536
24
- nexaai/binds/nexa_llama_cpp/ggml-cpu.dll,sha256=tNaqpthvVb4m59kV6JXlAICycbvYseiLPteI0N6ILlU,656384
25
- nexaai/binds/nexa_llama_cpp/ggml-cuda.dll,sha256=g0hXgrVcmb8se6AD_49cYvUKJgalfki4f9ZWGlWP2p4,302319616
26
- nexaai/binds/nexa_llama_cpp/ggml-vulkan.dll,sha256=QBQbbTnfJ-nauvE1TcbxowAhylx-uuGmrUEE-6NEtFs,24686080
27
- nexaai/binds/nexa_llama_cpp/ggml.dll,sha256=rOGVfcbwCnR40tcZBufcOhyeTEzRQcQgWA7YGeeUpAM,66560
28
- nexaai/binds/nexa_llama_cpp/llama.dll,sha256=DPd4Ft4AZi4aCfKFMNOS_hyWUH3fGV5TK0USmlfCewA,1587712
29
- nexaai/binds/nexa_llama_cpp/mtmd.dll,sha256=xsGO62lzfwT6JCiO-xy3qynU26tAb0gL9poSXf_vDvs,557056
30
- nexaai/binds/nexa_llama_cpp/nexa_plugin.dll,sha256=s572VcKxaGBIC8svoc-8xUqff7OUWBdd3G9qr_c_BuE,1059840
19
+ nexaai/binds/common_bind.cp310-win_amd64.pyd,sha256=dkXWLzyqnwbjD8X-R2EgXVisNQ0m8dp4vPDUk9lTFtk,201216
20
+ nexaai/binds/embedder_bind.cp310-win_amd64.pyd,sha256=rIpVBezf-CnRLOXp-UUm1QzMyo6jfVv45gmYcjazGbw,182784
21
+ nexaai/binds/llm_bind.cp310-win_amd64.pyd,sha256=ZYJ3LPPoCJ71I_-fzWBIP1CAH2074Gp6nOofnAcOYdc,160256
22
+ nexaai/binds/nexa_bridge.dll,sha256=5s3i1ipX6gy0PsTN6NwpdI3sHb1GWThWuDR6V_IpHZY,176640
23
+ nexaai/binds/nexa_llama_cpp/ggml-base.dll,sha256=gbrUPK8zgkj9bBR5xUDGD0D7nvNGUq92AN3WQn8MQko,514560
24
+ nexaai/binds/nexa_llama_cpp/ggml-cpu.dll,sha256=35M4StfLC6dabERz-lsIMN-0cqZ-5TuzBiMxNJfavDk,663552
25
+ nexaai/binds/nexa_llama_cpp/ggml-cuda.dll,sha256=ArpiDq4u5H69gMvTNLI4n6KVvEAW9kX0W47bkoGte18,315100160
26
+ nexaai/binds/nexa_llama_cpp/ggml-vulkan.dll,sha256=SKtwhTRMZ5NjAd-tfOwRSh5YClFPOs4rW8RVuMTHaPs,26204160
27
+ nexaai/binds/nexa_llama_cpp/ggml.dll,sha256=pvoyxBM3WRq_RkivDQlYi5V5zLKAtZ_onLoZBf68OmA,66560
28
+ nexaai/binds/nexa_llama_cpp/llama.dll,sha256=zOiAWXJivXJCPRMPLEXC9Ct1jWXNl8NyknEEy8whfDA,1587712
29
+ nexaai/binds/nexa_llama_cpp/mtmd.dll,sha256=fiSHNh1iDND5aqBwhE0Bki-up2olfoLDIKTsWmjQip0,560128
30
+ nexaai/binds/nexa_llama_cpp/nexa_plugin.dll,sha256=G6LAMb8NNRUTiVIyTBF-6CZ3OzdeHJ5ZliHJDDPkUWk,1086464
31
31
  nexaai/cv_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  nexaai/cv_impl/mlx_cv_impl.py,sha256=vYN8ASbDr-VlQcia0ydpE3tUfnRcRIoRVQDAOhlZB_4,3250
33
33
  nexaai/cv_impl/pybind_cv_impl.py,sha256=oXT7Hcurg2YH_qgvwpGtgeQcIFxt6uzT9xN-cLvRHcU,1029
@@ -49,11 +49,11 @@ nexaai/tts_impl/pybind_tts_impl.py,sha256=JmWWoluN6I8325IwPL_Np8RLUq_yMENPoyszQ9
49
49
  nexaai/utils/avatar_fetcher.py,sha256=D01f8je-37Nd68zGw8MYK2m7y3fvGlC6h0KR-aN9kdU,3925
50
50
  nexaai/utils/decode.py,sha256=0Z9jDH4ICzw4YXj8nD4L-sMouDaev-TISGRQ4KzidWE,421
51
51
  nexaai/utils/model_manager.py,sha256=Ksl-tKq-a3miTUxEn6-SSOC_KVdn6RPjcUdkWmDDwCk,49767
52
- nexaai/utils/progress_tracker.py,sha256=eLJfgzXifTfJZzjkTH1ruUO0PDfvFad4ytYx8bs0NT0,14745
52
+ nexaai/utils/progress_tracker.py,sha256=FmJBoOlzfQdc-TmccEav0cBR_iSNrrcskG3Fm1OrEJA,15482
53
53
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=DobOLnbf1v2uQrcB0TByTzJDp2Vhrjyjk3DvW4feahQ,9152
55
55
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=WGC21LaQnr4LEiytXX8wVBMLJDG75GIweW3kEMxJGXE,8561
56
- nexaai-1.0.4rc13.dist-info/METADATA,sha256=2a97uuKz6hRHcOZ-_AM6RL4p7jTKl_f2RSNfb2vvYIs,978
57
- nexaai-1.0.4rc13.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
58
- nexaai-1.0.4rc13.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
59
- nexaai-1.0.4rc13.dist-info/RECORD,,
56
+ nexaai-1.0.4rc14.dist-info/METADATA,sha256=AHPVkJq7Csbteh1-yBdVtZFIp0UKq6QWyVPTMJmQbCc,978
57
+ nexaai-1.0.4rc14.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
58
+ nexaai-1.0.4rc14.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
59
+ nexaai-1.0.4rc14.dist-info/RECORD,,