Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
canserai
/
gg
like
0
Building
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e213a3a
gg
/
etc
/
tool
/
openapi.py
mfoud444
first commit
79859e3
4 months ago
raw
Copy download link
history
blame
Safe
216 Bytes
import
json
from
g4f.api
import
create_app
app = create_app()
with
open
(
"openapi.json"
,
"w"
)
as
f:
data = json.dumps(app.openapi())
f.write(data)
print
(
f"openapi.json -
{
round
(
len
(data)/
1024
,
2
)}
kbytes"
)