Allen Park commited on
Commit
f663f9b
·
1 Parent(s): a1f7b63

uncomment interface code to compare

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -124,20 +124,20 @@ def model_call(question, document, answer, client):
124
  combined_reasoning = " ".join(reasoning)[1:-1]
125
  return combined_reasoning, score
126
 
127
- # inputs = [
128
- # gr.Textbox(label="Question"),
129
- # gr.Textbox(label="Document"),
130
- # gr.Textbox(label="Answer")
131
- # ]
132
- # outputs = [
133
- # gr.Textbox(label="Reasoning"),
134
- # gr.Textbox(label="Score")
135
- # ]
136
 
137
  with gr.Blocks() as demo:
138
  client_state = gr.State(update_client("Patronus Lynx 8B"))
139
  gr.Markdown(HEADER)
140
- # gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
141
  model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model", interactive=True)
142
  with gr.Row():
143
  with gr.Column(scale=1):
 
124
  combined_reasoning = " ".join(reasoning)[1:-1]
125
  return combined_reasoning, score
126
 
127
+ inputs = [
128
+ gr.Textbox(label="Question"),
129
+ gr.Textbox(label="Document"),
130
+ gr.Textbox(label="Answer")
131
+ ]
132
+ outputs = [
133
+ gr.Textbox(label="Reasoning"),
134
+ gr.Textbox(label="Score")
135
+ ]
136
 
137
  with gr.Blocks() as demo:
138
  client_state = gr.State(update_client("Patronus Lynx 8B"))
139
  gr.Markdown(HEADER)
140
+ gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
141
  model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model", interactive=True)
142
  with gr.Row():
143
  with gr.Column(scale=1):