Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -4,8 +4,8 @@ app = FastAPI()
|
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
-
return
|
8 |
|
9 |
-
@app.get("/linlada
|
10 |
-
def read_root(prompt):
|
11 |
return {"Hello": prompt}
|
|
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
+
return "Hello, I'm Linlada"
|
8 |
|
9 |
+
@app.get("/linlada/{prompt}")
|
10 |
+
def read_root(prompt: str):
|
11 |
return {"Hello": prompt}
|