Spaces:
Sleeping
Sleeping
demo decorative changes
Browse files- web_demo/app.py +2 -3
- web_demo/templates/index.html +2 -1
web_demo/app.py
CHANGED
@@ -28,6 +28,8 @@ env_label_to_env_name = {
|
|
28 |
"Role Reversal Role A (Finetune - test)": "SocialAI-MarblePassACollaborationParamEnv-v1",
|
29 |
"Imitation (Train)": "SocialAI-EEmulationNoDistrInformationSeekingParamEnv-v1",
|
30 |
"Imitation (Test)": "SocialAI-EEmulationNoDistrDoorsInformationSeekingParamEnv-v1",
|
|
|
|
|
31 |
"Language Color (Train)": "SocialAI-ELangColorHeldoutDoorsTrainInformationSeekingParamEnv-v1",
|
32 |
"Language Color (Test)": "SocialAI-ELangColorDoorsTestInformationSeekingParamEnv-v1",
|
33 |
"Language Feedback (Train)": "SocialAI-ELangFeedbackHeldoutDoorsTrainInformationSeekingParamEnv-v1",
|
@@ -36,8 +38,6 @@ env_label_to_env_name = {
|
|
36 |
"Joint Attention Language Color (Test)": "SocialAI-ELangColorDoorsTestInformationSeekingParamEnv-v1",
|
37 |
"Apple stealing": "SocialAI-AppleStealingObst_NoParamEnv-v1",
|
38 |
"Apple stealing (Occlusions)": "SocialAI-AppleStealingObst_MediumParamEnv-v1",
|
39 |
-
"AsocialBox (textworld)": "SocialAI-AsocialBoxInformationSeekingParamEnv-v1",
|
40 |
-
"ColorBoxes (textworld)": "SocialAI-ColorBoxesLLMCSParamEnv-v1",
|
41 |
"Scaffolding (train - scaf_8: Phase 1)": "SocialAI-AELangFeedbackTrainScaffoldingCSParamEnv-v1",
|
42 |
"Scaffolding/Formats (test)":"SocialAI-AELangFeedbackTrainFormatsCSParamEnv-v1",
|
43 |
}
|
@@ -60,7 +60,6 @@ env = gym.make(env_name)
|
|
60 |
def create_bubble_text(env_name, obs, info, full_conversation, textworld_envs):
|
61 |
if env_name in textworld_envs:
|
62 |
text_obs = generate_text_obs(obs, info)
|
63 |
-
# bubble_text = "Textworld state:\n" + text_obs
|
64 |
bubble_text = text_obs
|
65 |
|
66 |
else:
|
|
|
28 |
"Role Reversal Role A (Finetune - test)": "SocialAI-MarblePassACollaborationParamEnv-v1",
|
29 |
"Imitation (Train)": "SocialAI-EEmulationNoDistrInformationSeekingParamEnv-v1",
|
30 |
"Imitation (Test)": "SocialAI-EEmulationNoDistrDoorsInformationSeekingParamEnv-v1",
|
31 |
+
"AsocialBox (textworld)": "SocialAI-AsocialBoxInformationSeekingParamEnv-v1",
|
32 |
+
"ColorBoxes (textworld)": "SocialAI-ColorBoxesLLMCSParamEnv-v1",
|
33 |
"Language Color (Train)": "SocialAI-ELangColorHeldoutDoorsTrainInformationSeekingParamEnv-v1",
|
34 |
"Language Color (Test)": "SocialAI-ELangColorDoorsTestInformationSeekingParamEnv-v1",
|
35 |
"Language Feedback (Train)": "SocialAI-ELangFeedbackHeldoutDoorsTrainInformationSeekingParamEnv-v1",
|
|
|
38 |
"Joint Attention Language Color (Test)": "SocialAI-ELangColorDoorsTestInformationSeekingParamEnv-v1",
|
39 |
"Apple stealing": "SocialAI-AppleStealingObst_NoParamEnv-v1",
|
40 |
"Apple stealing (Occlusions)": "SocialAI-AppleStealingObst_MediumParamEnv-v1",
|
|
|
|
|
41 |
"Scaffolding (train - scaf_8: Phase 1)": "SocialAI-AELangFeedbackTrainScaffoldingCSParamEnv-v1",
|
42 |
"Scaffolding/Formats (test)":"SocialAI-AELangFeedbackTrainFormatsCSParamEnv-v1",
|
43 |
}
|
|
|
60 |
def create_bubble_text(env_name, obs, info, full_conversation, textworld_envs):
|
61 |
if env_name in textworld_envs:
|
62 |
text_obs = generate_text_obs(obs, info)
|
|
|
63 |
bubble_text = text_obs
|
64 |
|
65 |
else:
|
web_demo/templates/index.html
CHANGED
@@ -113,7 +113,8 @@
|
|
113 |
border-radius: 10px;
|
114 |
padding: 10px;
|
115 |
width: max-content;
|
116 |
-
|
|
|
117 |
margin-bottom: 20px;
|
118 |
}
|
119 |
|
|
|
113 |
border-radius: 10px;
|
114 |
padding: 10px;
|
115 |
width: max-content;
|
116 |
+
min-width: 300px; /* adjust if necessary */
|
117 |
+
max-width: 300px; /* adjust if necessary */
|
118 |
margin-bottom: 20px;
|
119 |
}
|
120 |
|