kouki321 commited on
Commit
c42bfcb
·
verified ·
1 Parent(s): a963e42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -274,10 +274,10 @@ if uploaded_file:
274
  torch.save(clean_up(clone_cache(cache), origin_len), "saved_cache.pth")
275
  st.success("Cache saved successfully!")
276
  # Add Reset button at the end
277
- resource_dashboard(cache, doc_text, last_generation_time, last_cache_clone_time, location='main')
278
  else:
279
  st.info("Please upload a document to start.")
280
- resource_dashboard(None, None, location='main')
281
 
282
  # Sidebar: Load a previously saved cache
283
  st.sidebar.header("🛠️ Advanced Options")
 
274
  torch.save(clean_up(clone_cache(cache), origin_len), "saved_cache.pth")
275
  st.success("Cache saved successfully!")
276
  # Add Reset button at the end
277
+ resource_dashboard(cache, doc_text, last_generation_time, last_cache_clone_time)
278
  else:
279
  st.info("Please upload a document to start.")
280
+ resource_dashboard(None, None)
281
 
282
  # Sidebar: Load a previously saved cache
283
  st.sidebar.header("🛠️ Advanced Options")