Spaces:
Running
Running
File size: 1,338 Bytes
27d1bb9 | 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | from gradio_client import Client
import time
def test_hy3():
try:
print("Testing Tencent/Hy3...")
client = Client("tencent/Hy3")
result = client.predict(
message="Hello",
system_prompt="",
history=None,
think_level="high",
temperature=0.7,
max_tokens=100,
top_p=0.8,
functions_json_str="",
api_name="/chat"
)
print("Hy3 Response:", str(result)[:200])
return True
except Exception as e:
print("Hy3 Error:", e)
return False
def test_qwen_omni():
try:
print("\nTesting Qwen3.5-Omni-Offline-Demo...")
client = Client("Qwen/Qwen3.5-Omni-Offline-Demo")
client.predict(api_name="/clear_history_offline")
result = client.predict(
text="Hello",
audio=None,
image=None,
video=None,
history=[],
system_prompt="",
temperature=0.7,
top_p=0.8,
top_k=20,
api_name="/chat_predict"
)
print("Qwen Omni Response:", str(result)[:200])
return True
except Exception as e:
print("Qwen Omni Error:", e)
return False
if __name__ == "__main__":
test_hy3()
test_qwen_omni()
|