Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
# تثبيت المكتبات
|
2 |
-
!pip install transformers torch datasets gradio
|
3 |
-
|
4 |
# استيراد المكتبات
|
5 |
from transformers import BlipProcessor, BlipForConditionalGeneration, MarianMTModel, MarianTokenizer
|
6 |
import gradio as gr
|
@@ -46,3 +43,4 @@ iface = gr.Interface(
|
|
46 |
|
47 |
# تشغيل واجهة Gradio
|
48 |
iface.launch()
|
|
|
|
|
|
|
|
|
|
1 |
# استيراد المكتبات
|
2 |
from transformers import BlipProcessor, BlipForConditionalGeneration, MarianMTModel, MarianTokenizer
|
3 |
import gradio as gr
|
|
|
43 |
|
44 |
# تشغيل واجهة Gradio
|
45 |
iface.launch()
|
46 |
+
|