Spaces:
Running
Running
Commit
·
9542f69
1
Parent(s):
b835cf7
Add application file
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ def generate_thai_response(character_name, confidence):
|
|
| 129 |
|
| 130 |
# 4. ONNX INFERENCE FUNCTION
|
| 131 |
# ----------------------------------------------------
|
| 132 |
-
|
| 133 |
def predict_one_piece_character(pil_image):
|
| 134 |
if pil_image is None or sess is None:
|
| 135 |
return "⚠️ โมเดลไม่พร้อมใช้งาน กรุณาตรวจสอบไฟล์ ONNX และการตั้งค่า"
|
|
|
|
| 129 |
|
| 130 |
# 4. ONNX INFERENCE FUNCTION
|
| 131 |
# ----------------------------------------------------
|
| 132 |
+
#@spaces.GPU
|
| 133 |
def predict_one_piece_character(pil_image):
|
| 134 |
if pil_image is None or sess is None:
|
| 135 |
return "⚠️ โมเดลไม่พร้อมใช้งาน กรุณาตรวจสอบไฟล์ ONNX และการตั้งค่า"
|