File size: 732 Bytes
e034dfc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from gradio_client import Client
import json

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

print("--- Testing /get_repo_branches ---")
try:
    result = client.predict(
            repo_full_name="JsonLord/tiny_web",
            api_name="/get_repo_branches"
    )
    print(f"Result: {result}")
except Exception as e:
    print(f"Error: {e}")

print("\n--- Testing /handle_generate ---")
try:
    # Using small values for quick test
    result = client.predict(
            theme="Education",
            customer_profile="Student looking for online courses",
            num_personas=1,
            api_name="/handle_generate"
    )
    print(f"Result: {result}")
except Exception as e:
    print(f"Error: {e}")