* Adicionado POC do serviço de emotion
Browse files- .gitignore +2 -1
- tests/test_emotion.py +2 -2
.gitignore
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
-
*.mp4
|
|
|
|
|
|
| 1 |
+
*.mp4
|
| 2 |
+
*.venv*
|
tests/test_emotion.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import requests
|
| 2 |
import base64
|
| 3 |
|
| 4 |
-
API_URL = "https://clmarrara-tech-challenge-fase-4-
|
| 5 |
|
| 6 |
def test_emotion():
|
| 7 |
print("Carregando video MP4")
|
| 8 |
-
with open("teste.mp4", "rb") as f:
|
| 9 |
video_b64 = base64.b64encode(f.read()).decode()
|
| 10 |
|
| 11 |
print("Enviando requisição...")
|
|
|
|
| 1 |
import requests
|
| 2 |
import base64
|
| 3 |
|
| 4 |
+
API_URL = "https://clmarrara-tech-challenge-fase-4-emotion-backend.hf.space"
|
| 5 |
|
| 6 |
def test_emotion():
|
| 7 |
print("Carregando video MP4")
|
| 8 |
+
with open("./tests/teste.mp4", "rb") as f:
|
| 9 |
video_b64 = base64.b64encode(f.read()).decode()
|
| 10 |
|
| 11 |
print("Enviando requisição...")
|