Spaces:
Runtime error
Runtime error
Upload interface.py
Browse files- interface.py +7 -0
interface.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from demo import predict
|
3 |
+
|
4 |
+
gr.Interface(fn=predict, inputs=["image", "text"], outputs=["text"]).launch()
|
5 |
+
|
6 |
+
if __name__ == '__main__':
|
7 |
+
io.lanuch()
|