Skip to content

Commit 476ba1c

Browse files
authored
Update app.py
Update the interface for gradio. This fixes this warning "serWarning: The 'tuples' format for chatbot messages is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys".
1 parent 51abd80 commit 476ba1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def gradio_interface(message: str, history: list) -> str:
258258
],
259259
["Search news for 'latest technology trends'"],
260260
],
261+
type="messages",
261262
)
262263

263264
# Launch the Gradio interface

0 commit comments

Comments
 (0)