Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
|
4 |
+
def process_image(image):
|
5 |
+
output = imagRaF.predict(image) # استبدل هذا بكود معالجة الصورة الخاص بنموذجك
|
6 |
+
return output
|
7 |
+
|
8 |
+
iface = gr.Interface(fn=process_image, inputs="image", outputs="image")
|
9 |
+
iface.launch()
|