Jongmo commited on
Commit
607c9e5
1 Parent(s): 35986fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,6 +50,7 @@ def wtr_process(qid):
50
  return error_df
51
 
52
 
 
53
  def prv_process(qid):
54
  target_QID = qid
55
  conn = sqlite3.connect('wikidata_claims_refs_parsed.db')
@@ -100,7 +101,6 @@ with gr.Blocks() as demo:
100
  )
101
  out_2 = gr.HTML(label="Results")
102
  run_button_2 = gr.Button("Start processing")
103
- prv_process = spaces.GPU(prv_process)
104
  run_button_2.click(prv_process, inp, out_2)
105
 
106
 
 
50
  return error_df
51
 
52
 
53
+ @spaces.GPU(duration=120)
54
  def prv_process(qid):
55
  target_QID = qid
56
  conn = sqlite3.connect('wikidata_claims_refs_parsed.db')
 
101
  )
102
  out_2 = gr.HTML(label="Results")
103
  run_button_2 = gr.Button("Start processing")
 
104
  run_button_2.click(prv_process, inp, out_2)
105
 
106