Spaces:
Sleeping
Sleeping
Commit
路
266b77d
1
Parent(s):
76ee29c
Subindo arquivos111
Browse files
app.py
CHANGED
@@ -8,16 +8,16 @@ import collections
|
|
8 |
import json
|
9 |
import glob
|
10 |
|
11 |
-
# Padr玫es de IA
|
12 |
ai_patterns = [
|
13 |
-
"PIC*", "PersonalImageClassifier*", "Look*", "LookExtension*", "ChatBot", "ImageBot", "TMIC","Gemini*", "Llama*","TeachableMachine*",
|
14 |
-
"TeachableMachineImageClassifier*", "SpeechRecognizer*", "FaceExtension*","Pose*","Posenet","PosenetExtension", "Eliza*", "Alexa*"
|
15 |
]
|
16 |
|
17 |
# Padr玫es para cada categoria
|
18 |
drawing_and_animation_patterns = ["Ball", "Canvas", "ImageSprite"]
|
19 |
-
maps_patterns = ["Map", "Marker", "Circle", "FeatureCollection", "LineString", "Navigation","Polygon", "Retangle"
|
20 |
-
sensors_patterns = ["AccelerometerSensor", "BarcodeScanner", "Barometer", "Clock", "GyroscopeSensor", "Hygrometer", "LightSensor", "LocationSensor", "MagneticFieldSensor", "NearField","OrientationSensor", "ProximitySensor","Thermometer", "Pedometer"]
|
21 |
social_patterns = ["ContactPicker", "EmailPicker", "PhoneCall", "PhoneNumberPicker", "Texting", "Twitter"]
|
22 |
storage_patterns = ["File", "CloudDB", "DataFile", "Spreadsheet", "FusiontablesControl", "TinyDB", "TinyWebDB"]
|
23 |
connectivity_patterns = ["BluetoothClient", "ActivityStarter", "Serial", "BluetoothServer", "Web"]
|
@@ -209,7 +209,7 @@ def list_components_in_aia_file(file_path):
|
|
209 |
'Maps': maps_summary,
|
210 |
'Sensors': sensors_summary,
|
211 |
'Social': social_summary,
|
212 |
-
'Storage':
|
213 |
'Connectivity': connectivity_summary
|
214 |
}])
|
215 |
|
@@ -262,7 +262,7 @@ iface = gr.Interface(
|
|
262 |
fn=analyze_aia,
|
263 |
inputs=gr.Files(label="Upload .aia Files"),
|
264 |
outputs=gr.HTML(),
|
265 |
-
examples=[["example1.aia"]], # Certifique-se de que o arquivo example1.aia est谩 no mesmo diret贸rio que o script
|
266 |
title="AIA-Scope",
|
267 |
description="Upload .aia (or multiples .aia) files to analyze/dissect their components. An .aia file from MIT App Inventor is a project file format that contains all the necessary information for an App Inventor project.",
|
268 |
live=False
|
|
|
8 |
import json
|
9 |
import glob
|
10 |
|
11 |
+
# Padr玫es de IA
|
12 |
ai_patterns = [
|
13 |
+
"PIC*", "PersonalImageClassifier*", "Look*", "LookExtension*", "ChatBot", "ImageBot", "TMIC", "Gemini*", "Llama*", "TeachableMachine*",
|
14 |
+
"TeachableMachineImageClassifier*", "SpeechRecognizer*", "FaceExtension*", "Pose*", "Posenet", "PosenetExtension", "Eliza*", "Alexa*"
|
15 |
]
|
16 |
|
17 |
# Padr玫es para cada categoria
|
18 |
drawing_and_animation_patterns = ["Ball", "Canvas", "ImageSprite"]
|
19 |
+
maps_patterns = ["Map", "Marker", "Circle", "FeatureCollection", "LineString", "Navigation", "Polygon", "Retangle"]
|
20 |
+
sensors_patterns = ["AccelerometerSensor", "BarcodeScanner", "Barometer", "Clock", "GyroscopeSensor", "Hygrometer", "LightSensor", "LocationSensor", "MagneticFieldSensor", "NearField", "OrientationSensor", "ProximitySensor", "Thermometer", "Pedometer"]
|
21 |
social_patterns = ["ContactPicker", "EmailPicker", "PhoneCall", "PhoneNumberPicker", "Texting", "Twitter"]
|
22 |
storage_patterns = ["File", "CloudDB", "DataFile", "Spreadsheet", "FusiontablesControl", "TinyDB", "TinyWebDB"]
|
23 |
connectivity_patterns = ["BluetoothClient", "ActivityStarter", "Serial", "BluetoothServer", "Web"]
|
|
|
209 |
'Maps': maps_summary,
|
210 |
'Sensors': sensors_summary,
|
211 |
'Social': social_summary,
|
212 |
+
'Storage': storage_summary,
|
213 |
'Connectivity': connectivity_summary
|
214 |
}])
|
215 |
|
|
|
262 |
fn=analyze_aia,
|
263 |
inputs=gr.Files(label="Upload .aia Files"),
|
264 |
outputs=gr.HTML(),
|
265 |
+
examples=[["./example1.aia"]], # Certifique-se de que o arquivo example1.aia est谩 no mesmo diret贸rio que o script
|
266 |
title="AIA-Scope",
|
267 |
description="Upload .aia (or multiples .aia) files to analyze/dissect their components. An .aia file from MIT App Inventor is a project file format that contains all the necessary information for an App Inventor project.",
|
268 |
live=False
|