Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def detect_onnx_models(path):
|
|
76 |
return None
|
77 |
|
78 |
@app.get("/")
|
79 |
-
def
|
80 |
"""Main entry point"""
|
81 |
sys.path.append('./content/piper/src/python')
|
82 |
models_path = "./content/piper/src/python"
|
@@ -413,7 +413,9 @@ def transform(input_data):
|
|
413 |
|
414 |
return magnitude, phase
|
415 |
|
416 |
-
|
|
|
|
|
417 |
# app()
|
418 |
|
419 |
# Create an instance of the FastAPI class
|
|
|
76 |
return None
|
77 |
|
78 |
@app.get("/")
|
79 |
+
def main():
|
80 |
"""Main entry point"""
|
81 |
sys.path.append('./content/piper/src/python')
|
82 |
models_path = "./content/piper/src/python"
|
|
|
413 |
|
414 |
return magnitude, phase
|
415 |
|
416 |
+
if __name__ == "__main__":
|
417 |
+
|
418 |
+
pass
|
419 |
# app()
|
420 |
|
421 |
# Create an instance of the FastAPI class
|