atrytone commited on
Commit
caad63d
·
1 Parent(s): 891f199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=get_article())
 
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):