Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ def handle_accuse_click(request: gr.Request):
|
|
260 |
|
261 |
def accuse_btn(request: gr.Request):
|
262 |
accuse_btn= gr.Button("Accuser")
|
263 |
-
accuse_btn.click(handle_accuse_click
|
264 |
return accuse_btn
|
265 |
|
266 |
def chatbot_interface(request: gr.Request):
|
@@ -282,7 +282,7 @@ def main(request: gr.Request):
|
|
282 |
with gr.Blocks(css="footer {visibility: hidden !important} .gradio-container {background-color: #2D4059 !important; color: #FFD460 !important;}",
|
283 |
js=js_func) as demo:
|
284 |
chat_interface = chatbot_interface(request)
|
285 |
-
|
286 |
demo.launch(show_api=False, inline=True)
|
287 |
|
288 |
if __name__ == "__main__":
|
|
|
260 |
|
261 |
def accuse_btn(request: gr.Request):
|
262 |
accuse_btn= gr.Button("Accuser")
|
263 |
+
accuse_btn.click(handle_accuse_click)
|
264 |
return accuse_btn
|
265 |
|
266 |
def chatbot_interface(request: gr.Request):
|
|
|
282 |
with gr.Blocks(css="footer {visibility: hidden !important} .gradio-container {background-color: #2D4059 !important; color: #FFD460 !important;}",
|
283 |
js=js_func) as demo:
|
284 |
chat_interface = chatbot_interface(request)
|
285 |
+
accuse_button = accuse_btn(request)
|
286 |
demo.launch(show_api=False, inline=True)
|
287 |
|
288 |
if __name__ == "__main__":
|