Spaces:
Sleeping
Sleeping
Shankar commited on
Commit ·
418816e
1
Parent(s): d48fa9e
feat: change default theme
Browse files
app.py
CHANGED
|
@@ -51,9 +51,6 @@ def chatbot_respond(user_message, history):
|
|
| 51 |
response.json().get("data", {}).get("raw", "Sorry, I didn't understand.")
|
| 52 |
)
|
| 53 |
except Exception as e:
|
| 54 |
-
import traceback
|
| 55 |
-
|
| 56 |
-
traceback.print_exc()
|
| 57 |
bot_reply = "Server unavailable. This is a mocked reply."
|
| 58 |
|
| 59 |
history.append({"role": "assistant", "content": bot_reply})
|
|
@@ -77,6 +74,7 @@ def restore_chat():
|
|
| 77 |
# Frontend
|
| 78 |
|
| 79 |
with gr.Blocks(
|
|
|
|
| 80 |
css="""
|
| 81 |
#profile-pic-wrapper {
|
| 82 |
width: 100px;
|
|
@@ -125,7 +123,7 @@ with gr.Blocks(
|
|
| 125 |
right: 20px;
|
| 126 |
z-index: 1000;
|
| 127 |
}
|
| 128 |
-
"""
|
| 129 |
) as demo:
|
| 130 |
|
| 131 |
with gr.Row():
|
|
|
|
| 51 |
response.json().get("data", {}).get("raw", "Sorry, I didn't understand.")
|
| 52 |
)
|
| 53 |
except Exception as e:
|
|
|
|
|
|
|
|
|
|
| 54 |
bot_reply = "Server unavailable. This is a mocked reply."
|
| 55 |
|
| 56 |
history.append({"role": "assistant", "content": bot_reply})
|
|
|
|
| 74 |
# Frontend
|
| 75 |
|
| 76 |
with gr.Blocks(
|
| 77 |
+
theme="default",
|
| 78 |
css="""
|
| 79 |
#profile-pic-wrapper {
|
| 80 |
width: 100px;
|
|
|
|
| 123 |
right: 20px;
|
| 124 |
z-index: 1000;
|
| 125 |
}
|
| 126 |
+
""",
|
| 127 |
) as demo:
|
| 128 |
|
| 129 |
with gr.Row():
|