Spaces:
Runtime error
Runtime error
Comment out deconstructed gradio elements (gr.Row & gr.Column) and uncomment gr.Interface
Browse files
app.py
CHANGED
|
@@ -104,16 +104,16 @@ outputs = [
|
|
| 104 |
|
| 105 |
with gr.Blocks() as demo:
|
| 106 |
gr.Markdown(HEADER)
|
| 107 |
-
|
| 108 |
-
with gr.Row():
|
| 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])
|
|
|
|
| 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])
|