File size: 292 Bytes
fa32025 | 1 2 3 4 5 6 7 8 9 10 11 12 | from gradio_client import Client, file
import time
def keepalive():
client = Client("http://127.0.0.1:7860/")
client.predict(
user_message="runcommand25750 echo hi",
selected_model="Qwen/Qwen2-72B-Instruct",
api_name="/predict"
)
while True:
keepalive() |