Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|