Fix api run module

This commit is contained in:
Heiner Lohaus 2023-12-23 21:03:33 +01:00
parent 3a81f9a2af
commit 236ec98380

View File

@ -2,5 +2,5 @@ import g4f
import g4f.api import g4f.api
if __name__ == "__main__": if __name__ == "__main__":
print(f'Starting server... [g4f v-{g4f.version}]') print(f'Starting server... [g4f v-{g4f.debug.get_version()}]')
g4f.api.Api(engine = g4f, debug = True).run(ip = "0.0.0.0:10000") g4f.api.Api(engine = g4f, debug = True).run(ip = "0.0.0.0:10000")