Spaces:
Runtime error
Runtime error
app.py with the sas tokens
#32
by anthony01 - opened
app.py
CHANGED
|
@@ -3,6 +3,10 @@ import os
|
|
| 3 |
from azure.storage.blob import BlobServiceClient
|
| 4 |
import AzureBlobStorageVideo
|
| 5 |
import AzureBlobStorageAudio
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def predict_video(input_video, input_audio=None, input_choice="Explosions"):
|
|
@@ -35,6 +39,9 @@ def predict_video(input_video, input_audio=None, input_choice="Explosions"):
|
|
| 35 |
Returns:
|
| 36 |
A list containing the processed video and a message string.
|
| 37 |
"""
|
|
|
|
|
|
|
|
|
|
| 38 |
# Placeholder processing (replace with actual video analysis)
|
| 39 |
message = "**Placeholder:** Video processing not implemented yet."
|
| 40 |
|
|
|
|
| 3 |
from azure.storage.blob import BlobServiceClient
|
| 4 |
import AzureBlobStorageVideo
|
| 5 |
import AzureBlobStorageAudio
|
| 6 |
+
from apiTest import sas_token_1
|
| 7 |
+
from apiTest import sas_url_1
|
| 8 |
+
from apiTest import videoAnalysis
|
| 9 |
+
from apiTest import instance_1
|
| 10 |
|
| 11 |
|
| 12 |
def predict_video(input_video, input_audio=None, input_choice="Explosions"):
|
|
|
|
| 39 |
Returns:
|
| 40 |
A list containing the processed video and a message string.
|
| 41 |
"""
|
| 42 |
+
|
| 43 |
+
videoAnalysis(sas_url=sas_url_1,sas_token=sas_token_1, search=instance_1)
|
| 44 |
+
|
| 45 |
# Placeholder processing (replace with actual video analysis)
|
| 46 |
message = "**Placeholder:** Video processing not implemented yet."
|
| 47 |
|