Spaces:
Running
on
Zero
Running
on
Zero
Ngaima Sandiman
commited on
Commit
·
57a94b9
1
Parent(s):
b3575e0
Added main method.
Browse files
app.py
CHANGED
@@ -24,13 +24,13 @@ gradio_interface = gr.Interface(
|
|
24 |
fn=imagecraft_interface,
|
25 |
inputs=[
|
26 |
gr.Image(type="filepath", label="Upload an image"),
|
27 |
-
gr.Textbox(label="Reference Text (for evaluation)"),
|
28 |
],
|
29 |
outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Transcript")],
|
30 |
title="ImageCraft",
|
31 |
description="Upload an image and get the speech responses.",
|
32 |
-
|
33 |
)
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
24 |
fn=imagecraft_interface,
|
25 |
inputs=[
|
26 |
gr.Image(type="filepath", label="Upload an image"),
|
|
|
27 |
],
|
28 |
outputs=[gr.Audio(label="Speech"), gr.Textbox(label="Transcript")],
|
29 |
title="ImageCraft",
|
30 |
description="Upload an image and get the speech responses.",
|
31 |
+
flagging_mode="never",
|
32 |
)
|
33 |
|
34 |
+
if __name__ == "__main__":
|
35 |
+
# Launch the Gradio app
|
36 |
+
gradio_interface.launch()
|