py499372727 / AgentSims

AgentSims is an easy-to-use infrastructure for researchers from all disciplines to test the specific capacities they are interested in.
MIT License
773 stars 99 forks source link

Problem in showing the index.html result in colab #13

Open soheilpaper opened 1 year ago

soheilpaper commented 1 year ago

I have tried to simulate the Agentsims in colab and I have problem in runnings the index.html file in this colab page (link of it). I get 404 code.

Maybe the resin is because of this part of it:

import json

# Define the content of the JSON file
content = {
    "gpt-3.5": "sk-XnrwpTOQ03xgtxxx"
}

# Convert the content to JSON format
json_content = json.dumps(content)

# Write the JSON content to the file
with open('/content/AgentSims/config/api_key.json', 'w') as file:
    file.write(json_content)

The tunneling and result page is shown at below:

enter image description here

enter image description here

Also I asked at this stackoverflow page.

py499372727 commented 1 year ago

I'm sorry, I have not used colab before. From the issue, it seems more likely to be a communication problem between the frontend and backend network connection.