File size: 403 Bytes
dbb6e93 1c85e9b dbb6e93 1c85e9b dbb6e93 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
import requests
def respond(
message,
history: list[tuple[str, str]],
):
resp = requests.get("https://huggingface.co")
return str(resp.status_code)
"""
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
"""
demo = gr.ChatInterface(
respond,
)
if __name__ == "__main__":
demo.launch()
|