roxky commited on
Commit
57c2629
·
verified ·
1 Parent(s): 4005fe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,7 +1,8 @@
1
- from fastapi import FastAPI
 
2
 
3
- app = FastAPI()
 
 
4
 
5
- @app.get("/")
6
- def greet_json():
7
- return {"Hello": "World!"}
 
1
+ import g4f.api
2
+ import g4f.Provider
3
 
4
+ class Feature()
5
+ pass
6
+ g4f.Provider.__map__["Feature"] = Feature
7
 
8
+ app = g4f.api.create_app_with_demo_and_debug()