Spaces:
Runtime error
Runtime error
BAKKALIAYOUB commited on
Commit ·
17829c4
1
Parent(s): a991a2d
Test App
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
-
return f"Hello, {name}!"
|
| 5 |
|
| 6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
|
| 3 |
+
app = FastAPI()
|
|
|
|
| 4 |
|
|
|
|
| 5 |
|
| 6 |
+
@app.get("/")
|
| 7 |
+
def greet_json():
|
| 8 |
+
return {"Hello": "World"}
|