macgaga commited on
Commit
29eb68a
·
verified ·
1 Parent(s): db5199c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -62,9 +62,23 @@ last_cn_on = False
62
  MAX_SEED = 2**32-1
63
 
64
  # Debug-Log-Feld hinzufügen
65
- debug_log = gr.Textbox(label="Debug Log", interactive=False, placeholder="Logs erscheinen hier...", lines=15)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
- # Funktion, um Tests auszuführen
68
  def run_test(input_text, debug_log):
69
  try:
70
  # Eingabe auf bekannte Tests prüfen
@@ -84,7 +98,7 @@ def run_test(input_text, debug_log):
84
  test_button.click(
85
  run_test,
86
  inputs=[test_input, debug_log],
87
- outputs=debug_log,
88
  )
89
 
90
 
 
62
  MAX_SEED = 2**32-1
63
 
64
  # Debug-Log-Feld hinzufügen
65
+ debug_log = gr.Textbox(
66
+ label="Debug Log",
67
+ interactive=False,
68
+ lines=10,
69
+ placeholder="Hier erscheinen Debug-Informationen...",
70
+ type="text" # Nur Text wird akzeptiert
71
+ )
72
+
73
+ # Test-Input-Feld und Button
74
+ with gr.Row():
75
+ test_input = gr.Textbox(
76
+ label="Test Input",
77
+ placeholder="Gib den Namen einer Funktion ein, z.B. 'get_custom_image'.",
78
+ )
79
+ test_button = gr.Button("Run Test")
80
 
81
+ # Funktion zum Testen
82
  def run_test(input_text, debug_log):
83
  try:
84
  # Eingabe auf bekannte Tests prüfen
 
98
  test_button.click(
99
  run_test,
100
  inputs=[test_input, debug_log],
101
+ outputs=debug_log
102
  )
103
 
104