Spaces:
Runtime error
Runtime error
Commit
·
8cda24e
1
Parent(s):
970236e
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,8 @@ gr.Chatbot.postprocess = postprocess
|
|
| 17 |
with open("css_new.css", "r", encoding="utf-8") as f:
|
| 18 |
css = f.read()
|
| 19 |
|
| 20 |
-
with gr.Blocks(css=css,theme=
|
| 21 |
-
|
| 22 |
history = gr.State([])
|
| 23 |
token_count = gr.State([])
|
| 24 |
promptTemplates = gr.State(load_template('myprompts.json', mode=2))
|
|
@@ -36,7 +36,7 @@ with gr.Blocks(css=css,theme=gr.themes.Soft()) as demo:
|
|
| 36 |
chatbot = gr.Chatbot()
|
| 37 |
user_input = gr.Textbox(show_label=False, placeholder="Enter text and press submit", visible=True).style(container=False)
|
| 38 |
submitBtn = gr.Button("Submit",variant="primary").style(container=False)
|
| 39 |
-
emptyBtn = gr.Button("Restart Conversation")
|
| 40 |
status_display = gr.Markdown("")
|
| 41 |
|
| 42 |
with gr.Column():
|
|
|
|
| 17 |
with open("css_new.css", "r", encoding="utf-8") as f:
|
| 18 |
css = f.read()
|
| 19 |
|
| 20 |
+
with gr.Blocks(css=css,theme='gstaff/xkcd') as demo:
|
| 21 |
+
# theme=gr.themes.Soft()
|
| 22 |
history = gr.State([])
|
| 23 |
token_count = gr.State([])
|
| 24 |
promptTemplates = gr.State(load_template('myprompts.json', mode=2))
|
|
|
|
| 36 |
chatbot = gr.Chatbot()
|
| 37 |
user_input = gr.Textbox(show_label=False, placeholder="Enter text and press submit", visible=True).style(container=False)
|
| 38 |
submitBtn = gr.Button("Submit",variant="primary").style(container=False)
|
| 39 |
+
emptyBtn = gr.Button("Restart Conversation",variant="secondary")
|
| 40 |
status_display = gr.Markdown("")
|
| 41 |
|
| 42 |
with gr.Column():
|