Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -144,24 +144,25 @@ text_stats='''*******************
|
|
144 |
|
145 |
with gr.Blocks() as app:
|
146 |
gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
|
147 |
-
with gr.
|
148 |
-
with gr.
|
149 |
-
|
150 |
-
|
151 |
-
with gr.
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
165 |
#text=gr.JSON()
|
166 |
#inp_query.change(search_models,inp_query,models_dd)
|
167 |
#test_b=test_btn.click(itt,url,e_box)
|
|
|
144 |
|
145 |
with gr.Blocks() as app:
|
146 |
gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
|
147 |
+
with gr.Group():
|
148 |
+
with gr.Row():
|
149 |
+
with gr.Column(scale=3):
|
150 |
+
chatbot = gr.Chatbot(label="Mixtral 8x7B Chatbot",show_copy_button=True)
|
151 |
+
with gr.Row():
|
152 |
+
with gr.Column(scale=3):
|
153 |
+
prompt=gr.Textbox(label = "Prompt", value="Start a new game")
|
154 |
+
with gr.Column(scale=1):
|
155 |
+
button=gr.Button()
|
156 |
+
|
157 |
+
#models_dd=gr.Dropdown(choices=[m for m in return_list],interactive=True)
|
158 |
+
with gr.Row():
|
159 |
+
stop_button=gr.Button("Stop")
|
160 |
+
clear_btn = gr.Button("Clear")
|
161 |
+
with gr.Row():
|
162 |
+
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")
|
163 |
+
with gr.Column(scale=1):
|
164 |
+
json_out=gr.JSON(value=base_stats)
|
165 |
+
char_stats=gr.Textbox(value=text_stats)
|
166 |
#text=gr.JSON()
|
167 |
#inp_query.change(search_models,inp_query,models_dd)
|
168 |
#test_b=test_btn.click(itt,url,e_box)
|