Spaces:
Running
Running
File size: 449 Bytes
1dccd50 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import requests
def generate_request(conversation_history):
url = "https://devsdocode-bing.hf.space/generate"
params = {
"conversation_history": conversation_history,
}
response = requests.get(url, params=params)
return response.text
if __name__ == "__main__":
# Example usage:
query = [{"role": "user", "content": "Who is Devs Do Code"}]
response = generate_request(query)
print(response) |