Spaces:
Running
Running
La API lanza error al querer utilizarla
#1
by
lucabot
- opened
En python quiero usar la API y me tira el mismo error haga lo que haga:
El error: File "C:\Users...\gradio_client\client.py", line 1238, in _predict
raise AppError( gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception: MultimodalTextbox expects a dictionary with optional keys 'text' and 'files'. Received str
El código que estoy usando es idéntico al ejemplo provisto:
from gradio_client import Client
client = Client("mateoluksenberg/chat")
result = client.predict(
message={"text":"Hola","files":[]},
temperature=0.8,
max_length=4096,
top_p=1,
top_k=10,
penalty=1,
api_name="/chat"
)
print(result)