bupa1018 commited on
Commit
2c0c1cb
·
1 Parent(s): cacd7ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -67,6 +67,12 @@ def add_text(history, text, state):
67
  history = history + [(text, None)]
68
  yield history, ""
69
 
 
 
 
 
 
 
70
  def main():
71
  with gr.Blocks() as demo:
72
  gr.Markdown("## KadiAPY - AI Coding-Assistant")
 
67
  history = history + [(text, None)]
68
  yield history, ""
69
 
70
+ def check_input_text(text):
71
+ if not text:
72
+ gr.Warning("Please input a question.")
73
+ raise TypeError
74
+ return True
75
+
76
  def main():
77
  with gr.Blocks() as demo:
78
  gr.Markdown("## KadiAPY - AI Coding-Assistant")