Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import gradio as gr # Gradio for UI
|
|
| 12 |
import re
|
| 13 |
|
| 14 |
def rgba_to_rgb(rgba_string):
|
| 15 |
-
match = re.match(r'rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)', rgba_string)
|
| 16 |
if not match:
|
| 17 |
raise ValueError("Chuỗi đầu vào không đúng định dạng rgba(r, g, b, a)")
|
| 18 |
|
|
|
|
| 12 |
import re
|
| 13 |
|
| 14 |
def rgba_to_rgb(rgba_string):
|
| 15 |
+
match = re.match(r'rgba\(([\d.]+),\s*([\d.]+),\s*([\d.]+),\s*([\d.]+)\)', rgba_string)
|
| 16 |
if not match:
|
| 17 |
raise ValueError("Chuỗi đầu vào không đúng định dạng rgba(r, g, b, a)")
|
| 18 |
|