Spaces:
Runtime error
Runtime error
Initial WorkWise backend merged main.py -> app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from fastapi import FastAPI
|
|
| 3 |
from fastapi.responses import JSONResponse
|
| 4 |
|
| 5 |
# Step 1: Create a simple function
|
|
|
|
| 6 |
def simple_function(text):
|
| 7 |
return f"Echo: {text}"
|
| 8 |
|
|
|
|
| 3 |
from fastapi.responses import JSONResponse
|
| 4 |
|
| 5 |
# Step 1: Create a simple function
|
| 6 |
+
@spaces.GPU
|
| 7 |
def simple_function(text):
|
| 8 |
return f"Echo: {text}"
|
| 9 |
|