jost commited on
Commit
c0eb133
1 Parent(s): 598fec3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -38,14 +38,14 @@ def main():
38
  with gr.Blocks() as demo:
39
  with gr.Row():
40
  api_key_input = gr.Textbox(label="API Key", placeholder="Enter your API key here", show_label=True, type="password")
41
- user_input = gr.Textbox(label="Your Message", placeholder="Enter your message here")
42
  model_selector1 = gr.Dropdown(label="Model 1", choices=["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x22B-Instruct-v0.1"])
43
  model_selector2 = gr.Dropdown(label="Model 2", choices=["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x22B-Instruct-v0.1"])
44
  submit_btn = gr.Button("Submit")
45
 
46
- output1 = gr.Textbox(label="Model 1 Response")
47
- output2 = gr.Textbox(label="Model 2 Response")
48
-
49
 
50
  submit_btn.click(fn=predict, inputs=[api_key_input, user_input, model_selector1, model_selector2], outputs=[output1, output2])
51
 
 
38
  with gr.Blocks() as demo:
39
  with gr.Row():
40
  api_key_input = gr.Textbox(label="API Key", placeholder="Enter your API key here", show_label=True, type="password")
41
+ user_input = gr.Textbox(label="Prompt", placeholder="Enter your message here")
42
  model_selector1 = gr.Dropdown(label="Model 1", choices=["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x22B-Instruct-v0.1"])
43
  model_selector2 = gr.Dropdown(label="Model 2", choices=["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x22B-Instruct-v0.1"])
44
  submit_btn = gr.Button("Submit")
45
 
46
+ with gr.Row():
47
+ output1 = gr.Textbox(label="Model 1 Response")
48
+ output2 = gr.Textbox(label="Model 2 Response")
49
 
50
  submit_btn.click(fn=predict, inputs=[api_key_input, user_input, model_selector1, model_selector2], outputs=[output1, output2])
51