Spaces:
Sleeping
Sleeping
Vegetais e entender o erro dos ingredientes
Browse files- agent.py +1 -1
- audio_util.py +4 -0
- constantes.py +11 -11
agent.py
CHANGED
|
@@ -14,7 +14,7 @@ class Agent:
|
|
| 14 |
|
| 15 |
print("Initializing Agent....")
|
| 16 |
print("**************************************************************************************")
|
| 17 |
-
print('........ Versão:
|
| 18 |
print("**************************************************************************************")
|
| 19 |
|
| 20 |
print("--> Audio Agent")
|
|
|
|
| 14 |
|
| 15 |
print("Initializing Agent....")
|
| 16 |
print("**************************************************************************************")
|
| 17 |
+
print('........ Versão: Vegetais .....')
|
| 18 |
print("**************************************************************************************")
|
| 19 |
|
| 20 |
print("--> Audio Agent")
|
audio_util.py
CHANGED
|
@@ -70,6 +70,10 @@ class Audio_Util:
|
|
| 70 |
lines = transcription.splitlines()
|
| 71 |
only_text = [line.strip() for line in lines if not re.match(r"^\d+$", line) and "-->" not in line]
|
| 72 |
formatted_text = "\n".join(only_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
return formatted_text
|
| 75 |
except Exception as e:
|
|
|
|
| 70 |
lines = transcription.splitlines()
|
| 71 |
only_text = [line.strip() for line in lines if not re.match(r"^\d+$", line) and "-->" not in line]
|
| 72 |
formatted_text = "\n".join(only_text)
|
| 73 |
+
|
| 74 |
+
print("========== Texto do Audio ===========")
|
| 75 |
+
print(only_text)
|
| 76 |
+
print("======================================")
|
| 77 |
|
| 78 |
return formatted_text
|
| 79 |
except Exception as e:
|
constantes.py
CHANGED
|
@@ -33,21 +33,21 @@ HUGGINGFACE_DATASET_URL_TEMPLATE = (
|
|
| 33 |
)
|
| 34 |
|
| 35 |
LISTA_TASKS_PROCESSAR = [
|
| 36 |
-
"8e867cd7-cff9-4e6c-867a-ff5ddc2550be",
|
| 37 |
-
"a1e91b78-d3d8-4675-bb8d-62741b4b68a6",
|
| 38 |
-
"2d83110e-a098-4ebb-9987-066c06fa42d0",
|
| 39 |
-
"cca530fc-4052-43b2-b130-b30968d8aa44",
|
| 40 |
-
"6f37996b-2ac7-44b0-8e68-6d28256631b4",
|
| 41 |
-
"9d191bce-651d-4746-be2d-7ef8ecadb9c2",
|
| 42 |
-
|
| 43 |
-
"f918266a-b3e0-4914-865d-4faa564f1aef",
|
| 44 |
-
"1f975693-876d-457b-a649-393859e79bf3",
|
| 45 |
-
"7bd855d8-463d-4ed5-93ca-5fe35145f733"
|
| 46 |
|
| 47 |
# Pendentes
|
| 48 |
#"4fc2f1ae-8625-45b5-ab34-ad4433bc21f8"
|
| 49 |
#"cabe07ed-9eca-40ea-8ead-410ef5e83f91"
|
| 50 |
-
|
| 51 |
#"305ac316-eef6-4446-960a-92d80d542f82"
|
| 52 |
#"3f57289b-8c60-48be-bd80-01f8099ca449"
|
| 53 |
#"840bfca7-4f7b-481a-8794-c560c340185d"
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
LISTA_TASKS_PROCESSAR = [
|
| 36 |
+
# "8e867cd7-cff9-4e6c-867a-ff5ddc2550be",
|
| 37 |
+
# "a1e91b78-d3d8-4675-bb8d-62741b4b68a6",
|
| 38 |
+
# "2d83110e-a098-4ebb-9987-066c06fa42d0",
|
| 39 |
+
# "cca530fc-4052-43b2-b130-b30968d8aa44",
|
| 40 |
+
# "6f37996b-2ac7-44b0-8e68-6d28256631b4",
|
| 41 |
+
# "9d191bce-651d-4746-be2d-7ef8ecadb9c2",
|
| 42 |
+
"99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3",
|
| 43 |
+
# "f918266a-b3e0-4914-865d-4faa564f1aef",
|
| 44 |
+
# "1f975693-876d-457b-a649-393859e79bf3",
|
| 45 |
+
# "7bd855d8-463d-4ed5-93ca-5fe35145f733"
|
| 46 |
|
| 47 |
# Pendentes
|
| 48 |
#"4fc2f1ae-8625-45b5-ab34-ad4433bc21f8"
|
| 49 |
#"cabe07ed-9eca-40ea-8ead-410ef5e83f91"
|
| 50 |
+
"3cef3a44-215e-4aed-8e3b-b1e3f08063b7"
|
| 51 |
#"305ac316-eef6-4446-960a-92d80d542f82"
|
| 52 |
#"3f57289b-8c60-48be-bd80-01f8099ca449"
|
| 53 |
#"840bfca7-4f7b-481a-8794-c560c340185d"
|