MAJED94760 commited on
Commit
cf53d59
1 Parent(s): dc206a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def generate_caption(image, language):
35
  # إعداد واجهة Gradio
36
  iface = gr.Interface(
37
  fn=generate_caption,
38
- inputs=[gr.inputs.Image(type="pil"), gr.inputs.Dropdown(choices=["English", "Arabic"])],
39
  outputs="text",
40
  title="Image Captioning System",
41
  description="Upload an image and choose the language for caption generation."
@@ -43,4 +43,5 @@ iface = gr.Interface(
43
 
44
  # تشغيل واجهة Gradio
45
  iface.launch()
 
46
 
 
35
  # إعداد واجهة Gradio
36
  iface = gr.Interface(
37
  fn=generate_caption,
38
+ inputs=[gr.Image(type="pil"), gr.Dropdown(choices=["English", "Arabic"], label="Select Language")],
39
  outputs="text",
40
  title="Image Captioning System",
41
  description="Upload an image and choose the language for caption generation."
 
43
 
44
  # تشغيل واجهة Gradio
45
  iface.launch()
46
+
47