Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,14 +32,13 @@ def get_types(cls_set: List[Type], component: str):
|
|
| 32 |
routes.get_types = get_types
|
| 33 |
|
| 34 |
# App code
|
| 35 |
-
def chat(x, id,
|
| 36 |
start = time.time()
|
| 37 |
result = gradio_client.predict(
|
| 38 |
x,
|
| 39 |
# str representing input in 'User input' Textbox component
|
| 40 |
-
60,
|
| 41 |
id,
|
| 42 |
-
|
| 43 |
fn_index=0
|
| 44 |
)
|
| 45 |
result = str(result)
|
|
|
|
| 32 |
routes.get_types = get_types
|
| 33 |
|
| 34 |
# App code
|
| 35 |
+
def chat(x, id, cdata):
|
| 36 |
start = time.time()
|
| 37 |
result = gradio_client.predict(
|
| 38 |
x,
|
| 39 |
# str representing input in 'User input' Textbox component
|
|
|
|
| 40 |
id,
|
| 41 |
+
cdata,
|
| 42 |
fn_index=0
|
| 43 |
)
|
| 44 |
result = str(result)
|