minhduc1503 commited on
Commit
6fcb553
·
verified ·
1 Parent(s): babb1a4

Create requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -4
requirements.txt CHANGED
@@ -1,4 +1,14 @@
1
- gradio
2
- torch
3
- transformers
4
- Pillow
 
 
 
 
 
 
 
 
 
 
 
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()