Spaces:
Runtime error
Runtime error
fix round 1
Browse files
env/__pycache__/attacker.cpython-312.pyc
CHANGED
|
Binary files a/env/__pycache__/attacker.cpython-312.pyc and b/env/__pycache__/attacker.cpython-312.pyc differ
|
|
|
env/__pycache__/env.cpython-312.pyc
CHANGED
|
Binary files a/env/__pycache__/env.cpython-312.pyc and b/env/__pycache__/env.cpython-312.pyc differ
|
|
|
env/__pycache__/fake_server.cpython-312.pyc
CHANGED
|
Binary files a/env/__pycache__/fake_server.cpython-312.pyc and b/env/__pycache__/fake_server.cpython-312.pyc differ
|
|
|
inference.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import time
|
| 2 |
import os
|
| 3 |
import random
|
|
@@ -6,6 +7,9 @@ from openai import OpenAI
|
|
| 6 |
|
| 7 |
random.seed(42)
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
from env.env import DeceptionEnv
|
| 10 |
from env.attacker import simulate_attack
|
| 11 |
|
|
|
|
| 1 |
+
import threading
|
| 2 |
import time
|
| 3 |
import os
|
| 4 |
import random
|
|
|
|
| 7 |
|
| 8 |
random.seed(42)
|
| 9 |
|
| 10 |
+
from env.fake_server import run_server
|
| 11 |
+
threading.Thread(target=run_server, daemon=True).start()
|
| 12 |
+
time.sleep(2)
|
| 13 |
from env.env import DeceptionEnv
|
| 14 |
from env.attacker import simulate_attack
|
| 15 |
|
tasks/__pycache__/__init__.cpython-312.pyc
CHANGED
|
Binary files a/tasks/__pycache__/__init__.cpython-312.pyc and b/tasks/__pycache__/__init__.cpython-312.pyc differ
|
|
|