Spaces:
Sleeping
Sleeping
comment out interface
Browse files
app.py
CHANGED
@@ -104,20 +104,20 @@ outputs = [
|
|
104 |
|
105 |
with gr.Blocks() as demo:
|
106 |
gr.Markdown(HEADER)
|
107 |
-
gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
|
118 |
# model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model")
|
119 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|
120 |
|
121 |
-
|
122 |
|
123 |
demo.launch()
|
|
|
104 |
|
105 |
with gr.Blocks() as demo:
|
106 |
gr.Markdown(HEADER)
|
107 |
+
# gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
108 |
+
with gr.Row():
|
109 |
+
with gr.Column(scale=1):
|
110 |
+
question = gr.Textbox(label="Question")
|
111 |
+
document = gr.Textbox(label="Document")
|
112 |
+
answer = gr.Textbox(label="Answer")
|
113 |
+
submit_button = gr.Button("Submit")
|
114 |
+
with gr.Column(scale=1):
|
115 |
+
reasoning = gr.Textbox(label="Reasoning")
|
116 |
+
score = gr.Textbox(label="Score")
|
117 |
|
118 |
# model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model")
|
119 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|
120 |
|
121 |
+
submit_button.click(fn=model_call, inputs=[question, document, answer], outputs=[reasoning, score])
|
122 |
|
123 |
demo.launch()
|