Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def format_prompt(message, history):
|
|
| 19 |
|
| 20 |
temperature=0.9
|
| 21 |
top_p=0.95
|
| 22 |
-
repetition_penalty=
|
| 23 |
|
| 24 |
def compress_history(history,temperature=temperature,top_p=top_p,repetition_penalty=repetition_penalty):
|
| 25 |
print("COMPRESSING")
|
|
@@ -135,10 +135,10 @@ base_stats=[
|
|
| 135 |
{"Health":100,"Power":20,"Strength":24},
|
| 136 |
]
|
| 137 |
text_stats='''*******************
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
'''
|
| 143 |
|
| 144 |
with gr.Blocks() as app:
|
|
|
|
| 19 |
|
| 20 |
temperature=0.9
|
| 21 |
top_p=0.95
|
| 22 |
+
repetition_penalty=2.0
|
| 23 |
|
| 24 |
def compress_history(history,temperature=temperature,top_p=top_p,repetition_penalty=repetition_penalty):
|
| 25 |
print("COMPRESSING")
|
|
|
|
| 135 |
{"Health":100,"Power":20,"Strength":24},
|
| 136 |
]
|
| 137 |
text_stats='''*******************
|
| 138 |
+
Health: 100
|
| 139 |
+
Power: 20
|
| 140 |
+
Strength: 24
|
| 141 |
+
*******************
|
| 142 |
'''
|
| 143 |
|
| 144 |
with gr.Blocks() as app:
|