Spaces:
Sleeping
Sleeping
add gr.Row() parent and change the children back to gr.Column()
Browse files
app.py
CHANGED
@@ -103,15 +103,15 @@ outputs = [
|
|
103 |
with gr.Blocks() as demo:
|
104 |
gr.Markdown(HEADER)
|
105 |
# gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
# model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model")
|
117 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|
|
|
103 |
with gr.Blocks() as demo:
|
104 |
gr.Markdown(HEADER)
|
105 |
# gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
106 |
+
with gr.Row():
|
107 |
+
with gr.Column(scale=1):
|
108 |
+
question = gr.Textbox(label="Question")
|
109 |
+
document = gr.Textbox(label="Document")
|
110 |
+
answer = gr.Textbox(label="Answer")
|
111 |
+
submit_button = gr.Button("Submit")
|
112 |
+
with gr.Column(scale=1):
|
113 |
+
reasoning = gr.Textbox(label="Reasoning")
|
114 |
+
score = gr.Textbox(label="Score")
|
115 |
|
116 |
# model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model")
|
117 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|