Spaces:
Build error
Build error
Create requirements.txt
Browse files- requirements.txt +14 -4
requirements.txt
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
-
gradio
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
|
4 |
+
def phan_tich_anh(image):
|
5 |
+
return "✅ Đã nhận ảnh, xử lý thành công (demo) 🧠"
|
6 |
+
|
7 |
+
giao_dien = gr.Interface(
|
8 |
+
fn=phan_tich_anh,
|
9 |
+
inputs=gr.Image(type="pil", label="📥 Chọn ảnh X-quang"),
|
10 |
+
outputs=gr.Textbox(label="📋 Kết quả"),
|
11 |
+
title="🧠 Ứng dụng AI phân tích ảnh X-quang"
|
12 |
+
)
|
13 |
+
|
14 |
+
giao_dien.launch()
|