allenpark commited on
Commit
c43c3ad
·
verified ·
1 Parent(s): 59cd0d4

comment out interface

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