Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Duplicated from
dwfwfwfwf/g4f
Voxxium
/
g4f
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
g4f
/
app.py
dwfwfwfwf
Update app.py
dafc77f
verified
9 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
232 Bytes
import
subprocess
import
sys
if
__name__ ==
"__main__"
:
# Correct way to run gpt4free API on port 7860
subprocess.run([
sys.executable,
"-m"
,
"g4f"
,
"api"
,
"--bind"
,
"0.0.0.0:7860"
,
"--debug"
])