Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 5
|
2 |
+
|
3 |
+
from gradio_client import Client
|
4 |
+
|
5 |
+
client = Client("https://awacke1-mvp-gaia.hf.space/")
|
6 |
+
result = client.predict(
|
7 |
+
"Howdy!", # str representing input in 'Type an input and press Enter' Textbox component
|
8 |
+
0, # int | float representing input in 'Top-p (nucleus sampling)' Slider component
|
9 |
+
0, # int | float representing input in 'Temperature' Slider component
|
10 |
+
5, # int | float representing input in 'parameter_10' Number component
|
11 |
+
"null", # str representing input in 'parameter_4' Chatbot component
|
12 |
+
fn_index=5
|
13 |
+
)
|
14 |
+
print(result)
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
# 6
|
21 |
+
|
22 |
+
from gradio_client import Client
|
23 |
+
|
24 |
+
client = Client("https://awacke1-mvp-gaia.hf.space/")
|
25 |
+
result = client.predict(
|
26 |
+
"Howdy!", # str representing input in 'Type an input and press Enter' Textbox component
|
27 |
+
0, # int | float representing input in 'Top-p (nucleus sampling)' Slider component
|
28 |
+
0, # int | float representing input in 'Temperature' Slider component
|
29 |
+
5, # int | float representing input in 'parameter_10' Number component
|
30 |
+
"null", # str representing input in 'parameter_4' Chatbot component
|
31 |
+
fn_index=6
|
32 |
+
)
|
33 |
+
print(result)
|
34 |
+
|