Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,4 +126,27 @@ interface = gr.ChatInterface(fn = chat_response,
|
|
| 126 |
"Who are the siblings of Karna?",
|
| 127 |
"Tell me the names of top 5 characters in Mahabharata."])
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
interface.launch(share=True)
|
|
|
|
| 126 |
"Who are the siblings of Karna?",
|
| 127 |
"Tell me the names of top 5 characters in Mahabharata."])
|
| 128 |
|
| 129 |
+
|
| 130 |
+
# Create a Gradio interface with custom CSS for submit button
|
| 131 |
+
interface = gr.ChatInterface(fn=chat_response,
|
| 132 |
+
theme="soft",
|
| 133 |
+
chatbot=gr.Chatbot(height=500),
|
| 134 |
+
undo_btn=None,
|
| 135 |
+
clear_btn="\U0001F5D1 Clear chat",
|
| 136 |
+
examples=["Who killed Ghatotakach?",
|
| 137 |
+
"Who are the parents of Karna?",
|
| 138 |
+
"Who are the kids of Kunti?",
|
| 139 |
+
"Who are the siblings of Karna?",
|
| 140 |
+
"Tell me the names of top 5 characters in Mahabharata."],
|
| 141 |
+
submit_button={
|
| 142 |
+
"children": "Ask",
|
| 143 |
+
"style": {
|
| 144 |
+
"background": "linear-gradient(90deg, #9848FC 0%, #DC8855 100%)",
|
| 145 |
+
"backgroundClip": "text",
|
| 146 |
+
"-webkit-background-clip": "text",
|
| 147 |
+
"-webkit-text-fill-color": "transparent"
|
| 148 |
+
}
|
| 149 |
+
})
|
| 150 |
+
|
| 151 |
+
# Launch the interface
|
| 152 |
interface.launch(share=True)
|