Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,10 +98,10 @@ async def create_demo():
|
|
| 98 |
return demo
|
| 99 |
|
| 100 |
# Entry point
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
| 105 |
|
| 106 |
-
if __name__ == "__main__":
|
| 107 |
-
asyncio.run(main())
|
|
|
|
| 98 |
return demo
|
| 99 |
|
| 100 |
# Entry point
|
| 101 |
+
import nest_asyncio
|
| 102 |
+
nest_asyncio.apply()
|
| 103 |
+
|
| 104 |
+
demo = asyncio.run(create_demo())
|
| 105 |
+
demo.queue()
|
| 106 |
+
demo.launch()
|
| 107 |
|
|
|
|
|
|