charliebaby2023 commited on
Commit
4c20fde
Β·
verified Β·
1 Parent(s): 821e5e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -15,12 +15,6 @@ combined_prompt = ""
15
 
16
 
17
 
18
- def log_message():
19
- logs = ""
20
- for i in range(5): # Simulate some logging over time
21
- logs += f"Log message {i+1}\n"
22
- time.sleep(1)
23
- return logs
24
 
25
 
26
  def get_current_time():
@@ -98,9 +92,7 @@ def make_me():
98
 
99
  #gen_button.click(lambda _: gr.update(interactive=True), None, stop_button)
100
  gen_button.click(lambda _: gr.update(interactive=True), None)
101
- log_output = gr.Textbox(label="Logs", lines=2, interactive=False)
102
- log_button = gr.Button("Start Logging")
103
- log_button.click(log_message, outputs=log_output)
104
 
105
  gr.HTML("""
106
  <div style="text-align: center; max-width: 100%; margin: 0 auto;">
@@ -145,6 +137,7 @@ with gr.Blocks(css="""
145
  textarea { overflow-y: scroll; height: 212px; resize: both; width: 179px; min-height: 50px; max-height: 230px;}
146
  .svelte-5y6bt2 {max-height:161px;min-height:160px;}
147
  .hide-container { max-height: 2px; position: fixed; min-height: 1px;}
 
148
  """) as demo:
149
  gr.Markdown("<script>" + js_code + "</script>")
150
  make_me()
 
15
 
16
 
17
 
 
 
 
 
 
 
18
 
19
 
20
  def get_current_time():
 
92
 
93
  #gen_button.click(lambda _: gr.update(interactive=True), None, stop_button)
94
  gen_button.click(lambda _: gr.update(interactive=True), None)
95
+
 
 
96
 
97
  gr.HTML("""
98
  <div style="text-align: center; max-width: 100%; margin: 0 auto;">
 
137
  textarea { overflow-y: scroll; height: 212px; resize: both; width: 179px; min-height: 50px; max-height: 230px;}
138
  .svelte-5y6bt2 {max-height:161px;min-height:160px;}
139
  .hide-container { max-height: 2px; position: fixed; min-height: 1px;}
140
+ #component-583 {display:none;}
141
  """) as demo:
142
  gr.Markdown("<script>" + js_code + "</script>")
143
  make_me()