File size: 435 Bytes
44b5c9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from gradio_client import Client
import json

client = Client("https://harvesthealth-xxg-backup.hf.space/")

print("\n--- Testing /handle_generate with Persona Pool logic ---")
try:
    result = client.predict(
            theme="Education",
            customer_profile="Student",
            num_personas=1,
            api_name="/handle_generate"
    )
    print(f"Result: {result}")
except Exception as e:
    print(f"Error: {e}")