Files
zjdataai-app/phoenixserver/phoenixserver.py
T
2024-08-29 11:54:20 +08:00

19 lines
305 B
Python

import os
from dotenv import load_dotenv
load_dotenv()
import phoenix as px
session = px.launch_app(use_temp_dir=False)
import msvcrt
def wait_for_keypress():
print("Press any key to continue...")
msvcrt.getch() # 等待按键
print("\nKey pressed!")
wait_for_keypress()
px.close_app()