Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,11 +29,12 @@ def get_types(cls_set: List[Type], component: str):
|
|
| 29 |
routes.get_types = get_types
|
| 30 |
|
| 31 |
# App code
|
| 32 |
-
def chat(x):
|
| 33 |
result = gradio_client.predict(
|
| 34 |
x,
|
| 35 |
# str representing input in 'User input' Textbox component
|
| 36 |
80,
|
|
|
|
| 37 |
fn_index=0
|
| 38 |
)
|
| 39 |
result = str(result)
|
|
|
|
| 29 |
routes.get_types = get_types
|
| 30 |
|
| 31 |
# App code
|
| 32 |
+
def chat(x, id):
|
| 33 |
result = gradio_client.predict(
|
| 34 |
x,
|
| 35 |
# str representing input in 'User input' Textbox component
|
| 36 |
80,
|
| 37 |
+
id,
|
| 38 |
fn_index=0
|
| 39 |
)
|
| 40 |
result = str(result)
|