Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,10 +46,20 @@ def run():
|
|
| 46 |
outputs=[
|
| 47 |
gr.Gallery(label="Generated images")
|
| 48 |
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
return _app
|
| 51 |
|
| 52 |
app = run()
|
| 53 |
-
app.launch(debug=True)
|
| 54 |
-
|
| 55 |
-
iface.launch(share=True)
|
|
|
|
| 46 |
outputs=[
|
| 47 |
gr.Gallery(label="Generated images")
|
| 48 |
])
|
| 49 |
+
|
| 50 |
+
interface = gr.Interface(
|
| 51 |
+
predict,
|
| 52 |
+
inputs="sketchpad",
|
| 53 |
+
outputs="label",
|
| 54 |
+
theme="huggingface",
|
| 55 |
+
title="Among Us Logic AI Generator",
|
| 56 |
+
description="Who wants to play Pictionary? Draw a common object like a shovel or a laptop, and the algorithm will guess in real time!",
|
| 57 |
+
article="<p style='text-align: center'>Sketch Recognition | Demo Model</p>",
|
| 58 |
+
live=True,
|
| 59 |
+
)
|
| 60 |
+
interface.launch(share=True)
|
| 61 |
|
| 62 |
return _app
|
| 63 |
|
| 64 |
app = run()
|
| 65 |
+
app.launch(debug=True)
|
|
|
|
|
|