Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import requests
|
3 |
-
import json
|
4 |
-
import hashlib
|
5 |
-
import time
|
6 |
-
import os
|
7 |
-
from PIL import Image
|
8 |
-
from pathlib import Path
|
|
|
|
|
9 |
|
10 |
# URL and personal information from the API
|
11 |
url_pre = "https://ap-east-1.tensorart.cloud/v1"
|
|
|
1 |
+
import gradio as gr # Để tạo giao diện web
|
2 |
+
import requests # Để thực hiện các yêu cầu HTTP
|
3 |
+
import json # Để làm việc với dữ liệu JSON
|
4 |
+
import hashlib # Để tạo hash MD5
|
5 |
+
import time # Để xử lý thời gian
|
6 |
+
import os # Để làm việc với biến môi trường
|
7 |
+
from PIL import Image # Để mở và xử lý hình ảnh
|
8 |
+
from pathlib import Path # Để làm việc với đường dẫn
|
9 |
+
from io import BytesIO # Để xử lý dữ liệu binary như hình ảnh
|
10 |
+
|
11 |
|
12 |
# URL and personal information from the API
|
13 |
url_pre = "https://ap-east-1.tensorart.cloud/v1"
|