Spaces:
Paused
Paused
Download main.py from leonsimon23/bing-chat-api: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/leonsimon23/bing-chat-api/resolve/main/main.py
- Command line
-
hf download hf://spaces/leonsimon23/bing-chat-api/main.py
-
curl -L -o main.py https://huggingface.co/spaces/leonsimon23/bing-chat-api/resolve/main/main.py
318 Bytes
| from conversations import ConversationSession | |
| if __name__ == "__main__": | |
| prompts = [ | |
| "Today's weather of California", | |
| "Please summarize your previous answer in table format", | |
| ] | |
| with ConversationSession("precise") as session: | |
| for prompt in prompts: | |
| session.chat(prompt) | |