Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,11 @@ import modal
|
|
2 |
|
3 |
f = modal.Cls.lookup("casa-interior-hf-v1", "DesignModel")
|
4 |
|
5 |
-
def casa_ai_run(
|
6 |
-
|
|
|
|
|
|
|
7 |
if image is None and text is None:
|
8 |
print('Please provide context in form of image, audio, text')
|
9 |
return None
|
|
|
2 |
|
3 |
f = modal.Cls.lookup("casa-interior-hf-v1", "DesignModel")
|
4 |
|
5 |
+
def casa_ai_run(dict=None, text=None):
|
6 |
+
|
7 |
+
image = dict["image"]
|
8 |
+
mask = dict["mask"]
|
9 |
+
|
10 |
if image is None and text is None:
|
11 |
print('Please provide context in form of image, audio, text')
|
12 |
return None
|