streamlit-octostar-utils 0.1.7a6__py3-none-any.whl → 0.1.7a8__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.
@@ -492,9 +492,20 @@ class CeleryExecutor(object):
492
492
  kwargs,
493
493
  task_id,
494
494
  )
495
- await asyncio.get_running_loop().run_in_executor(
496
- self.set_thread_pool, _send_task, task_fn, task_id, options
497
- )
495
+
496
+ try:
497
+ await asyncio.get_running_loop().run_in_executor(
498
+ self.set_thread_pool, _send_task, task_fn, task_id, options
499
+ )
500
+
501
+ except CeleryExecutor.QueueFullException as e:
502
+ if os.path.isfile(os.path.join(self.in_folder, task_id)):
503
+ with RedisFileLock(self.redis_client, os.path.join(self.in_folder, task_id)):
504
+ os.remove(os.path.join(self.in_folder, task_id))
505
+
506
+ logger.warning(f"Queue full exception: {str(e)}")
507
+ return None
508
+
498
509
  except asyncio.CancelledError:
499
510
  logger.info(f"Cancelling task {task_id} due to disconnect!")
500
511
  await self.terminate_task(task_id)
@@ -33,7 +33,7 @@ REGEX_NER_MODELS = {
33
33
  }
34
34
 
35
35
  BASE_TO_ONTONOTES_LABELMAP = {"PER": "PERSON"}
36
- BASE_ALLOWED_LABELS = ["PERSON", "ORG", "LOC", "NORP", "GPE", "PRODUCT", "DATE", "TIME", "PHONE", "IP_ADDRESS", "EMAIL"]
36
+ BASE_ALLOWED_LABELS = ["PERSON", "ORG", "LOC", "NORP", "GPE", "PRODUCT", "DATE", "PHONE", "IP_ADDRESS", "EMAIL", "URL"]
37
37
 
38
38
 
39
39
  def _sumy__get_best_sentences(sentences, rating, *args, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: streamlit-octostar-utils
3
- Version: 0.1.7a6
3
+ Version: 0.1.7a8
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Octostar
@@ -1,6 +1,6 @@
1
1
  streamlit_octostar_utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
2
  streamlit_octostar_utils/api_crafter/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- streamlit_octostar_utils/api_crafter/celery.py,sha256=RRkL2W2L17ML3vsSgg5pbngWLAhubnMvvumkP21szkA,29771
3
+ streamlit_octostar_utils/api_crafter/celery.py,sha256=3vJ7gDf_WyGrXquuxHNA9ybw1ljRAB_l3wJDNVUZs_0,30213
4
4
  streamlit_octostar_utils/api_crafter/fastapi.py,sha256=s4WayFitfS2fX_FGtv1s56RmLB9rx7cfwuFTZjzrKoY,14133
5
5
  streamlit_octostar_utils/api_crafter/nifi.py,sha256=fQ5k9eZl2oSQZ2BexZYwKUiO05-FryUi7wnCd_56P9Y,44375
6
6
  streamlit_octostar_utils/api_crafter/parser/__init__.py,sha256=YeYWF6sdQiCFV_RKNW2t9Vs6KJExE2pbXxWTe_DOayY,107
@@ -22,7 +22,7 @@ streamlit_octostar_utils/core/timestamp.py,sha256=a3s4xfm1nctLzYsHOJxqoWIDTdbNY_
22
22
  streamlit_octostar_utils/hello.py,sha256=JVeug8fnyYYf_qw6eeMDBrdqsSkiwnSHdPvb9puEGdA,69
23
23
  streamlit_octostar_utils/nlp/__init__.py,sha256=BtlYDZK_xaEbc7Ju_7MznXbCVPZcdLn26xwR9qf_UhM,336
24
24
  streamlit_octostar_utils/nlp/language.py,sha256=13f6kAALYjC3EclBzcyKPd4GlIeIR1mWPu3S6d-z814,549
25
- streamlit_octostar_utils/nlp/ner.py,sha256=GSbo8_orY3a1o11NaIRK_P61hFG25hzV-QXJ8uHwQl4,13385
25
+ streamlit_octostar_utils/nlp/ner.py,sha256=lw4VGJQHCJAudQvBJszJ0MYG-JGL-5-Y25wLY5ky6bU,13384
26
26
  streamlit_octostar_utils/octostar/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
27
27
  streamlit_octostar_utils/octostar/client.py,sha256=29tA1LY9ndLzAMR_KlL7Jb071YNAanubsppzy2BXb1E,1779
28
28
  streamlit_octostar_utils/octostar/context.py,sha256=TpucK48EbeVy4vDqKd9UULEtr1JOY-_4nBs-rXZzESw,212
@@ -37,7 +37,7 @@ streamlit_octostar_utils/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzp
37
37
  streamlit_octostar_utils/threading/async_task_manager.py,sha256=q7N6YZwUvIYMzkSHmsJNheNVCv93c03H6Hyg9uH8pvk,4747
38
38
  streamlit_octostar_utils/threading/session_callback_manager.py,sha256=LvZVP4g6tvKtYmI13f2j1sX_7hm61Groqp5xJine9_k,3973
39
39
  streamlit_octostar_utils/threading/session_state_hot_swapper.py,sha256=6eeCQI6A42hp4DmW2NQw2rbeR-k9N8DhfBKQdN_fbLU,811
40
- streamlit_octostar_utils-0.1.7a6.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
41
- streamlit_octostar_utils-0.1.7a6.dist-info/METADATA,sha256=PCy7knOjDx-BtE4xFsIDUKDzqNtgGgMSRS7JtznXSN8,2267
42
- streamlit_octostar_utils-0.1.7a6.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
43
- streamlit_octostar_utils-0.1.7a6.dist-info/RECORD,,
40
+ streamlit_octostar_utils-0.1.7a8.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
41
+ streamlit_octostar_utils-0.1.7a8.dist-info/METADATA,sha256=Qu54yUOzUMNjTN-JEZLeQa59Ibb2UNLZ1j3bj5XPT84,2267
42
+ streamlit_octostar_utils-0.1.7a8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
43
+ streamlit_octostar_utils-0.1.7a8.dist-info/RECORD,,