Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,6 +85,7 @@ def reset_chat():
|
|
| 85 |
#chatbot.change_conversation(id_new)
|
| 86 |
reset_textbox()
|
| 87 |
|
|
|
|
| 88 |
##########################################################
|
| 89 |
#Übersetzungs Ki nutzen
|
| 90 |
def translate():
|
|
@@ -96,7 +97,6 @@ def coding():
|
|
| 96 |
|
| 97 |
#######################################################################
|
| 98 |
#Darstellung mit Gradio
|
| 99 |
-
gr.Chatbot.postprocess = postprocess
|
| 100 |
|
| 101 |
with open("custom.css", "r", encoding="utf-8") as f:
|
| 102 |
customCSS = f.read()
|
|
@@ -194,7 +194,8 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
| 194 |
|
| 195 |
#neuer Chat
|
| 196 |
reset_args = dict(
|
| 197 |
-
fn=reset_chat, inputs=[], outputs=[user_input, status_display]
|
|
|
|
| 198 |
)
|
| 199 |
|
| 200 |
# Chatbot
|
|
|
|
| 85 |
#chatbot.change_conversation(id_new)
|
| 86 |
reset_textbox()
|
| 87 |
|
| 88 |
+
|
| 89 |
##########################################################
|
| 90 |
#Übersetzungs Ki nutzen
|
| 91 |
def translate():
|
|
|
|
| 97 |
|
| 98 |
#######################################################################
|
| 99 |
#Darstellung mit Gradio
|
|
|
|
| 100 |
|
| 101 |
with open("custom.css", "r", encoding="utf-8") as f:
|
| 102 |
customCSS = f.read()
|
|
|
|
| 194 |
|
| 195 |
#neuer Chat
|
| 196 |
reset_args = dict(
|
| 197 |
+
#fn=reset_chat, inputs=[], outputs=[user_input, status_display]
|
| 198 |
+
fn=reset_textbox, inputs=[], outputs=[user_input, status_display]
|
| 199 |
)
|
| 200 |
|
| 201 |
# Chatbot
|