10
client.py
Normal file
10
client.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# This file is auto-generated by LitServe.
|
||||
# Disable auto-generation by setting `generate_client_file=False` in `LitServer.run()`.
|
||||
import time
|
||||
|
||||
import requests
|
||||
|
||||
start_time = time.time()
|
||||
response = requests.post("http://127.0.0.1:8011/predict", json={"prompt": "变成一只猫"})
|
||||
# print(f"Status: {response.status_code}\nResponse:\n {response.text}")
|
||||
print(time.time() - start_time)
|
||||
Reference in New Issue
Block a user