davidberenstein1957 HF staff commited on
Commit
906e262
1 Parent(s): 17aeee6

Delete test.py

Browse files
Files changed (1) hide show
  1. test.py +0 -26
test.py DELETED
@@ -1,26 +0,0 @@
1
- import random
2
-
3
- from chat_interface_preference import ChatInterface
4
-
5
-
6
- def random_response(message, history, request):
7
- response = random.choice(["Yes", "No"])
8
- response_total = ""
9
- for char in response:
10
- response_total += char
11
- yield response_total
12
-
13
-
14
- style = "<style>.user-message,.system-message{display:flex;margin:10px}.user-message .message-content{background-color:#c2e3f7;color:#000}.system-message .message-content{background-color:#f5f5f5;color:#000}.message-content{padding:10px;border-radius:10px;max-width:70%;word-wrap:break-word}.container{display:flex;justify-content:space-between}.column{width:48%}</style>"
15
-
16
- demo = ChatInterface(
17
- random_response,
18
- cache_examples=False,
19
- css=style,
20
- repo_id="geitje-spin-preference",
21
- prefence_techniques=["kto"],
22
- max_turns=10,
23
- )
24
-
25
- if __name__ == "__main__":
26
- demo.launch()