Update app.py
Browse files
app.py
CHANGED
|
@@ -18,11 +18,9 @@ NUM_LAYERS = 2 # Number of transformer layers
|
|
| 18 |
|
| 19 |
# Gumbel softmax temperature
|
| 20 |
TAU = 1.0
|
| 21 |
-
|
| 22 |
LEARNING_RATE = 1e-3
|
| 23 |
|
| 24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 25 |
-
torch.random.manual_seed(1024)
|
| 26 |
|
| 27 |
# Pass embeded into decoder instead of using the original x
|
| 28 |
class TransformerEncoder(nn.Module):
|
|
@@ -266,7 +264,7 @@ def run_signal_game(NUM_SENDERS, NUM_RECEIVERS, num_rounds):
|
|
| 266 |
st.pyplot(fig)
|
| 267 |
|
| 268 |
# Streamlit UI
|
| 269 |
-
st.title('Multi-
|
| 270 |
|
| 271 |
NUM_SENDERS = st.sidebar.slider("NUM_SENDERS", 1, 3, 2)
|
| 272 |
NUM_RECEIVERS = st.sidebar.slider("NUM_RECEIVERS", 1, 3, 2)
|
|
|
|
| 18 |
|
| 19 |
# Gumbel softmax temperature
|
| 20 |
TAU = 1.0
|
|
|
|
| 21 |
LEARNING_RATE = 1e-3
|
| 22 |
|
| 23 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 24 |
|
| 25 |
# Pass embeded into decoder instead of using the original x
|
| 26 |
class TransformerEncoder(nn.Module):
|
|
|
|
| 264 |
st.pyplot(fig)
|
| 265 |
|
| 266 |
# Streamlit UI
|
| 267 |
+
st.title('Multi-Agent Signal Game')
|
| 268 |
|
| 269 |
NUM_SENDERS = st.sidebar.slider("NUM_SENDERS", 1, 3, 2)
|
| 270 |
NUM_RECEIVERS = st.sidebar.slider("NUM_RECEIVERS", 1, 3, 2)
|