Spaces:
Runtime error
Runtime error
youssef1214
commited on
Commit
•
640c929
1
Parent(s):
1d5b006
Update main.py
Browse files
main.py
CHANGED
@@ -218,13 +218,14 @@ semphoreShakwas=threading.Semaphore(0)
|
|
218 |
def summrizedshakwas():
|
219 |
global queuedUnSummurizedShawkas
|
220 |
global semphoreShakwas
|
|
|
221 |
while True:
|
222 |
semphoreShakwas.acquire()
|
223 |
shawka=queuedUnSummurizedShawkas.pop(0)
|
224 |
tmpdict= modelsummary(shawka.complaintbody)
|
225 |
print(tmpdict)
|
226 |
shawka.summary=tmpdict['summary']
|
227 |
-
shawka.set_data()
|
228 |
|
229 |
thread = threading.Thread(target=summrizedshakwas)
|
230 |
thread.start()
|
|
|
218 |
def summrizedshakwas():
|
219 |
global queuedUnSummurizedShawkas
|
220 |
global semphoreShakwas
|
221 |
+
global db
|
222 |
while True:
|
223 |
semphoreShakwas.acquire()
|
224 |
shawka=queuedUnSummurizedShawkas.pop(0)
|
225 |
tmpdict= modelsummary(shawka.complaintbody)
|
226 |
print(tmpdict)
|
227 |
shawka.summary=tmpdict['summary']
|
228 |
+
shawka.set_data(db)
|
229 |
|
230 |
thread = threading.Thread(target=summrizedshakwas)
|
231 |
thread.start()
|