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