Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,9 +38,6 @@ def get_article(db_name="miread_contrastive"):
|
|
| 38 |
return db[0]
|
| 39 |
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
def send_result(l_output, r_output, prompt, pick):
|
| 45 |
with csv.open('results.csv','a') as res_file:
|
| 46 |
writer = csv.writer(res_file)
|
|
@@ -104,7 +101,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 104 |
|
| 105 |
abst = gr.Textbox(label="Abstract", lines=10)
|
| 106 |
models = gr.State(value=get_matchup())
|
| 107 |
-
prompt = gr.State(value=
|
| 108 |
action_btn = gr.Button(value="Get comparison")
|
| 109 |
with gr.Row().style(equal_height=True):
|
| 110 |
with gr.Column(scale=1):
|
|
|
|
| 38 |
return db[0]
|
| 39 |
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
def send_result(l_output, r_output, prompt, pick):
|
| 42 |
with csv.open('results.csv','a') as res_file:
|
| 43 |
writer = csv.writer(res_file)
|
|
|
|
| 101 |
|
| 102 |
abst = gr.Textbox(label="Abstract", lines=10)
|
| 103 |
models = gr.State(value=get_matchup())
|
| 104 |
+
prompt = gr.State(value=get_article())
|
| 105 |
action_btn = gr.Button(value="Get comparison")
|
| 106 |
with gr.Row().style(equal_height=True):
|
| 107 |
with gr.Column(scale=1):
|