Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,10 +98,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
98 |
To find a recommendation, paste a `title[SEP]abstract` or `abstract` in the text box below and click on the appropriate \"Find Matches\" button.\
|
99 |
Then, you can hover to authors/abstracts/journals tab to find a suggested list.\
|
100 |
The data in our current demo includes authors associated with the NBDT Journal. We will update the data monthly for an up-to-date publications.")
|
101 |
-
|
102 |
-
abst = gr.Textbox(label="Abstract", lines=10)
|
103 |
models = gr.State(value=get_matchup())
|
104 |
-
prompt = gr.State(value=
|
|
|
105 |
action_btn = gr.Button(value="Get comparison")
|
106 |
with gr.Row().style(equal_height=True):
|
107 |
with gr.Column(scale=1):
|
|
|
98 |
To find a recommendation, paste a `title[SEP]abstract` or `abstract` in the text box below and click on the appropriate \"Find Matches\" button.\
|
99 |
Then, you can hover to authors/abstracts/journals tab to find a suggested list.\
|
100 |
The data in our current demo includes authors associated with the NBDT Journal. We will update the data monthly for an up-to-date publications.")
|
101 |
+
article = get_article()
|
|
|
102 |
models = gr.State(value=get_matchup())
|
103 |
+
prompt = gr.State(value=article)
|
104 |
+
abst = gr.Textbox(value = article, label="Abstract", lines=10)
|
105 |
action_btn = gr.Button(value="Get comparison")
|
106 |
with gr.Row().style(equal_height=True):
|
107 |
with gr.Column(scale=1):
|