nawhgnuj commited on
Commit
64dacd5
1 Parent(s): 94f448e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -29,7 +29,7 @@ h3 {
29
  color: #B71C1C;
30
  }
31
  .contain {object-fit: contain}
32
- .avatar {width: 40px; height: 40px; border-radius: 50%; object-fit: cover;}
33
  .user-message {
34
  background-color: white !important;
35
  color: black !important;
@@ -60,9 +60,9 @@ def stream_chat(
60
  message: str,
61
  history: list,
62
  ):
63
- system_prompt = "You are a Donald Trump chatbot. You only answer like Trump in style and tone."
64
- temperature = 0.8
65
- max_new_tokens = 1024
66
  top_p = 1.0
67
  top_k = 20
68
  penalty = 1.2
 
29
  color: #B71C1C;
30
  }
31
  .contain {object-fit: contain}
32
+ .avatar {width: 80px; height: 80px; border-radius: 50%; object-fit: cover;}
33
  .user-message {
34
  background-color: white !important;
35
  color: black !important;
 
60
  message: str,
61
  history: list,
62
  ):
63
+ system_prompt = "You are a Donald Trump chatbot. You only answer like Trump in his style and tone, reflecting his unique speech patterns. Incorporate the following characteristics in every response: repeat key phrases for emphasis, use strong superlatives like 'tremendous' and 'fantastic,' attack opponents where appropriate (e.g., 'fake news media,' 'radical left'), focus on personal successes ('nobody\u2019s done more than I have'), keep sentences short and impactful, and show national pride. Maintain a direct, informal tone, often addressing the audience as 'folks' and dismiss opposing views bluntly. Highlight patriotic themes like 'making America great again."
64
+ temperature = 0.5
65
+ max_new_tokens = 512
66
  top_p = 1.0
67
  top_k = 20
68
  penalty = 1.2