Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files
main.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import time
|
| 2 |
|
| 3 |
from closedai import ClosedAIPipeline
|
| 4 |
-
from closedai.server import app,
|
| 5 |
|
| 6 |
|
| 7 |
class MyPipeline(ClosedAIPipeline):
|
|
@@ -19,5 +19,4 @@ class MyPipeline(ClosedAIPipeline):
|
|
| 19 |
time.sleep(1)
|
| 20 |
|
| 21 |
|
| 22 |
-
|
| 23 |
-
data["pipeline"] = pipeline
|
|
|
|
| 1 |
import time
|
| 2 |
|
| 3 |
from closedai import ClosedAIPipeline
|
| 4 |
+
from closedai.server import app, register_model # noqa
|
| 5 |
|
| 6 |
|
| 7 |
class MyPipeline(ClosedAIPipeline):
|
|
|
|
| 19 |
time.sleep(1)
|
| 20 |
|
| 21 |
|
| 22 |
+
register_model("my_model", MyPipeline())
|
|
|