sotopia-lab / sotopia-demo

MIT License
0 stars 0 forks source link

add chat support #1

Closed bugsz closed 1 month ago

bugsz commented 1 month ago

Added a minimal runnable demo for live chat with LLM model

Implemented

Issues

XuhuiZhou commented 1 month ago

Run streamlit run app.py

I got

2024-08-05 15:53:20.069 Uncaught app exception
Traceback (most recent call last):
  File "/Users/xuhuizhou/miniconda3/envs/socialstream/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
    result = func()
             ^^^^^^
  File "/Users/xuhuizhou/miniconda3/envs/socialstream/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
    exec(code, module.__dict__)
  File "/Users/xuhuizhou/Web_dev/project_webs/sotopia-demo/app.py", line 6, in <module>
    from socialstream.chat import chat_demo, initialize_session_state
  File "/Users/xuhuizhou/Web_dev/project_webs/sotopia-demo/socialstream/chat/__init__.py", line 1, in <module>
    from .chat import chat_demo, initialize_session_state
  File "/Users/xuhuizhou/Web_dev/project_webs/sotopia-demo/socialstream/chat/chat.py", line 9, in <module>
    from sotopia.envs.evaluators import (
ImportError: cannot import name 'EvaluationForTwoAgents' from 'sotopia.envs.evaluators' (/Users/xuhuizhou/miniconda3/envs/socialstream/lib/python3.11/site-packages/sotopia/envs/evaluators.py)

Okay I fixed this

XuhuiZhou commented 1 month ago

The chat mode is not working for me. The observation is loading forever but no error msg from the console.

bugsz commented 1 month ago

Seems it is not in the database right now

XuhuiZhou commented 1 month ago

Seems it is not in the database right now

?

bugsz commented 1 month ago

My bad. I mean codebase

XuhuiZhou commented 1 month ago

My bad. I mean codebase

okay, that's good

XuhuiZhou commented 1 month ago

I think we could merge this now.