Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -148,7 +148,10 @@ def process_input(youtube_url, txt_file, api_key):
|
|
| 148 |
try:
|
| 149 |
response = requests.get(api_url)
|
| 150 |
if response.status_code == 404:
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
| 152 |
else:
|
| 153 |
response.raise_for_status()
|
| 154 |
data = response.json()
|
|
|
|
| 148 |
try:
|
| 149 |
response = requests.get(api_url)
|
| 150 |
if response.status_code == 404:
|
| 151 |
+
if check_description(video_id, api_key):
|
| 152 |
+
result += "查核結果:影片內嵌贊助廣告,再請人工複查業配事實。"
|
| 153 |
+
else:
|
| 154 |
+
result += "查核結果:未找到業配廣告片段。請使用地端影片分析程式查驗。"
|
| 155 |
else:
|
| 156 |
response.raise_for_status()
|
| 157 |
data = response.json()
|