Spaces:
Runtime error
Runtime error
thesourmango commited on
Commit ·
85b7aec
1
Parent(s): 9cf35d0
Added values from sliders
Browse files
app.py
CHANGED
|
@@ -3,10 +3,10 @@ from gradio_client import Client
|
|
| 3 |
client = Client("https://bistromd-mistral--t49mg.hf.space/")
|
| 4 |
result = client.predict(
|
| 5 |
"Howdy!", # str in 'Message' Textbox component
|
| 6 |
-
0, # int | float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
|
| 7 |
-
|
| 8 |
-
0, # int | float (numeric value between 0.0 and 1) in 'Top-p (nucleus sampling)' Slider component
|
| 9 |
-
1, # int | float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component
|
| 10 |
api_name="/chat"
|
| 11 |
)
|
| 12 |
print(result)
|
|
|
|
| 3 |
client = Client("https://bistromd-mistral--t49mg.hf.space/")
|
| 4 |
result = client.predict(
|
| 5 |
"Howdy!", # str in 'Message' Textbox component
|
| 6 |
+
0.9, # int | float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component
|
| 7 |
+
256, # int | float (numeric value between 0 and 1048) in 'Max new tokens' Slider component
|
| 8 |
+
0.9, # int | float (numeric value between 0.0 and 1) in 'Top-p (nucleus sampling)' Slider component
|
| 9 |
+
1.2, # int | float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component
|
| 10 |
api_name="/chat"
|
| 11 |
)
|
| 12 |
print(result)
|