from gradio_client import Client from stopwatch import Stopwatch stopwatch = Stopwatch() stopwatch.start() q="\nRespond with city name only: What is the capital of Greece? " print(q) print("Sending request...") client = Client("https://jalle007-vicuna.hf.space/") result = client.predict( q, api_name="/predict" ) stopwatch.stop() print("Time: ", round(stopwatch.elapsed_time()), "s") print(result)