Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from pytz import timezone
|
|
| 11 |
from scripts.survey import handle_form_submission, handle_visit_choice, handle_proceed, localize, script, generate_image, send_feedback
|
| 12 |
|
| 13 |
# εζε
|
| 14 |
-
|
| 15 |
|
| 16 |
@spaces.GPU
|
| 17 |
def process_image(input_image, mode, weight1=None, weight2=None):
|
|
|
|
| 11 |
from scripts.survey import handle_form_submission, handle_visit_choice, handle_proceed, localize, script, generate_image, send_feedback
|
| 12 |
|
| 13 |
# εζε
|
| 14 |
+
initialize(_use_local=False, use_gpu=True, use_dotenv=True)
|
| 15 |
|
| 16 |
@spaces.GPU
|
| 17 |
def process_image(input_image, mode, weight1=None, weight2=None):
|