Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,8 +120,8 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
|
|
120 |
print (f'--Error :: {e}')
|
121 |
print(f'Line:: {line}')
|
122 |
skills.append(skill_dict)
|
123 |
-
|
124 |
-
stats=new_stat
|
125 |
if history:
|
126 |
history.append((prompt,output))
|
127 |
yield "",history,stats,skills
|
@@ -132,9 +132,7 @@ def clear_fn():
|
|
132 |
return None,None
|
133 |
|
134 |
base_stats=[
|
135 |
-
{"Health":100},
|
136 |
-
{"Power":20},
|
137 |
-
{"Strength":24},
|
138 |
]
|
139 |
text_stats='''
|
140 |
*******************
|
|
|
120 |
print (f'--Error :: {e}')
|
121 |
print(f'Line:: {line}')
|
122 |
skills.append(skill_dict)
|
123 |
+
new_stat+="*******************\n"
|
124 |
+
stats=new_stat
|
125 |
if history:
|
126 |
history.append((prompt,output))
|
127 |
yield "",history,stats,skills
|
|
|
132 |
return None,None
|
133 |
|
134 |
base_stats=[
|
135 |
+
{"Health":100,"Power":20,"Strength":24},
|
|
|
|
|
136 |
]
|
137 |
text_stats='''
|
138 |
*******************
|