File size: 610 Bytes
1f9b19e
f43f827
09860e5
1f9b19e
39d46c0
85b7aec
 
 
 
1f9b19e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from gradio_client import Client

client = Client("https://bistromd-mistral--zr2ft.hf.space/")
result = client.predict(
		"Hello, tell me a short story",	# str  in 'Message' Textbox component
		0.9,	# int | float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
		256,	# int | float (numeric value between 0 and 1048) in 'Max new tokens' Slider component
		0.9,	# int | float (numeric value between 0.0 and 1) in 'Top-p (nucleus sampling)' Slider component
		1.2,	# int | float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component
		api_name="/chat"
)
print(result)