Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,12 @@ import json
|
|
| 4 |
import gradio as gr
|
| 5 |
import os
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def generate_answer(Question=""):
|
| 9 |
try:
|
|
@@ -25,6 +31,6 @@ description = "Ask your question"
|
|
| 25 |
article = "<p><strong>Disclaimer:</strong> Dubawa Chatbot is designed to assist users with fact-checked information and answer questions related to Dubawa and fact-checked articles. While we strive to provide accurate and reliable information, please be aware that the chatbot's responses are generated based on available data and may not always reflect the most up-to-date information. Users are encouraged to cross-verify information for critical decisions and consult trusted sources for any specific or sensitive inquiries.</p>"
|
| 26 |
title = "Dubawa Chatbot"
|
| 27 |
thumbnail = 'Dubawa'
|
| 28 |
-
demo = gr.Interface(fn=generate_answer, inputs="text", outputs="text", title=title, description=description,cache_examples=True, examples=examples, article=article, thumbnail=thumbnail,allow_flagging=
|
| 29 |
|
| 30 |
demo.launch(show_api=False, show_tips=True)
|
|
|
|
| 4 |
import gradio as gr
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
custom_css = """
|
| 8 |
+
.gr-button .circle::before {
|
| 9 |
+
border: 2px solid #0074d9;
|
| 10 |
+
}
|
| 11 |
+
footer {visibility: hidden}
|
| 12 |
+
"""
|
| 13 |
|
| 14 |
def generate_answer(Question=""):
|
| 15 |
try:
|
|
|
|
| 31 |
article = "<p><strong>Disclaimer:</strong> Dubawa Chatbot is designed to assist users with fact-checked information and answer questions related to Dubawa and fact-checked articles. While we strive to provide accurate and reliable information, please be aware that the chatbot's responses are generated based on available data and may not always reflect the most up-to-date information. Users are encouraged to cross-verify information for critical decisions and consult trusted sources for any specific or sensitive inquiries.</p>"
|
| 32 |
title = "Dubawa Chatbot"
|
| 33 |
thumbnail = 'Dubawa'
|
| 34 |
+
demo = gr.Interface(fn=generate_answer, inputs="text", outputs="text", title=title, description=description,cache_examples=True, examples=examples, article=article, thumbnail=thumbnail,allow_flagging=True, css=custom_css )
|
| 35 |
|
| 36 |
demo.launch(show_api=False, show_tips=True)
|