Spaces:
Runtime error
Runtime error
youssef1214
commited on
Commit
•
b29af5a
1
Parent(s):
82a3d32
Update main.py
Browse files
main.py
CHANGED
@@ -216,14 +216,15 @@ def genereteotp (email):
|
|
216 |
queuedUnSummurizedShawkas = []
|
217 |
semphoreShakwas=threading.Semaphore(0)
|
218 |
def summrizedshakwas():
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
227 |
thread.start()
|
228 |
|
229 |
#lithening to changes of documnts
|
|
|
216 |
queuedUnSummurizedShawkas = []
|
217 |
semphoreShakwas=threading.Semaphore(0)
|
218 |
def summrizedshakwas():
|
219 |
+
while True:
|
220 |
+
semphoreShakwas.acquire()
|
221 |
+
global queuedUnSummurizedShawkas
|
222 |
+
global semphoreShakwas
|
223 |
+
shawka=queuedUnSummurizedShawkas.pop(0)
|
224 |
+
tmpdict= modelsummary(shawka.complaintbody)
|
225 |
+
shawka.summary=tmpdict['summary']
|
226 |
+
shawka.set_data()
|
227 |
+
thread = threading.Thread(target=summrizedshakwas)
|
228 |
thread.start()
|
229 |
|
230 |
#lithening to changes of documnts
|