Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,13 @@ base_stats=[
|
|
133 |
{"Power":20},
|
134 |
{"Strength":24},
|
135 |
]
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
with gr.Blocks() as app:
|
139 |
gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
|
@@ -151,7 +157,7 @@ with gr.Blocks() as app:
|
|
151 |
with gr.Row():
|
152 |
tokens = gr.Slider(label="Max new tokens",value=2096,minimum=0,maximum=1048*10,step=64,interactive=True,info="The maximum numbers of new tokens")
|
153 |
json_out=gr.JSON(value=base_stats)
|
154 |
-
char_stats=gr.Textbox(value=
|
155 |
#text=gr.JSON()
|
156 |
#inp_query.change(search_models,inp_query,models_dd)
|
157 |
#test_b=test_btn.click(itt,url,e_box)
|
|
|
133 |
{"Power":20},
|
134 |
{"Strength":24},
|
135 |
]
|
136 |
+
text_stats='''
|
137 |
+
*******************
|
138 |
+
Health: 100
|
139 |
+
Power: 20
|
140 |
+
Strength: 24
|
141 |
+
*******************
|
142 |
+
'''
|
143 |
|
144 |
with gr.Blocks() as app:
|
145 |
gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
|
|
|
157 |
with gr.Row():
|
158 |
tokens = gr.Slider(label="Max new tokens",value=2096,minimum=0,maximum=1048*10,step=64,interactive=True,info="The maximum numbers of new tokens")
|
159 |
json_out=gr.JSON(value=base_stats)
|
160 |
+
char_stats=gr.Textbox(value=text_stats)
|
161 |
#text=gr.JSON()
|
162 |
#inp_query.change(search_models,inp_query,models_dd)
|
163 |
#test_b=test_btn.click(itt,url,e_box)
|