-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
73 lines (70 loc) · 2.07 KB
/
app.py
File metadata and controls
73 lines (70 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# app.py
from utilidades import clrscr, getch
from web_scraping import scraping
from operaciones_texto import traducir, audio_to_text, text_to_audio
from operaciones_texto import traductor_nlp, gen_text
from generar_imagen import generar_imagen
from blockchain import cadena_bloques
from codigos_qr import menu_qr
from realidad_aumentada import menu_ar
def main():
while True:
clrscr()
option = input(
"Seleccione una opción:\n"
"---- Tecnologías emergentes y disruptivas ----\n"
"1 -> Web scraping\n"
"2 -> Traducir texto\n"
"3 -> Generar imagen\n"
"4 -> Audio a texto\n"
"5 -> Texto a audio\n"
"6 -> Procesamiento del lenguaje natural\n"
"7 -> Generar texto\n"
"8 -> Blockchain\n"
"9 -> Códigos QR\n"
"10 -> Realidad aumentada\n"
"0 -> Salir\n"
"Opción: "
).strip()
match option:
case '1':
scraping()
getch()
case '2':
traducir()
getch()
case '3':
generar_imagen()
getch()
case '4':
audio_to_text()
getch()
case '5':
texto = input("Digite el texto a convertir: ")
text_to_audio(texto)
getch()
case '6':
texto = input("Digite el texto a convertir: ")
traductor_nlp(texto)
getch()
case '7':
gen_text()
getch()
case '8':
cadena_bloques()
getch()
case '9':
menu_qr()
getch()
case '10':
menu_ar()
getch()
case '0':
print("Bye")
getch()
break
case _:
print("Seleccione opción válida")
getch()
if __name__ == "__main__":
main()