Chris4K commited on
Commit
933688f
·
verified ·
1 Parent(s): 3f91442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -20,7 +20,27 @@ st.set_page_config(
20
  agent_config = AgentConfig()
21
 
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
 
 
24
 
25
 
26
  #######
 
20
  agent_config = AgentConfig()
21
 
22
 
23
+ import streamlit as st
24
+ import logging
25
+
26
+ # Set up the logger
27
+ transformers_logger = logging.getLogger("transformers.file_utils")
28
+
29
+ # Load the logs from the Transformers library
30
+ logs = transformers_logger.get_logs()
31
+
32
+ # Create a Streamlit app
33
+
34
+ # Add a button to trigger the modal
35
+ st.button("Open App User Desc Modal")
36
+
37
+ # Define a function to display the modal
38
+ def display_modal():
39
+ # Display the logs in a modal
40
+ st.write(logs)
41
 
42
+ # Add the modal to the app
43
+ st.add_modal(display_modal)
44
 
45
 
46
  #######