Omnibus commited on
Commit
32379c8
1 Parent(s): b4a3e73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -18
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.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)
 
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)