Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,7 @@ def process_text(text):
|
|
| 78 |
text = re.sub(r'\[.*?\](?<!Answer: )', '', text)
|
| 79 |
|
| 80 |
return text
|
|
|
|
| 81 |
custom_css = """
|
| 82 |
body, input, button, textarea, label {
|
| 83 |
font-family: Arial, sans-serif;
|
|
@@ -160,7 +161,7 @@ chat_interface = gr.ChatInterface(
|
|
| 160 |
stop_btn=None,
|
| 161 |
examples=[
|
| 162 |
["Can you explain briefly to me what is the Python programming language?"],
|
| 163 |
-
["Could you please provide an explanation about
|
| 164 |
["Could you explain what a URL is?"]
|
| 165 |
],
|
| 166 |
theme='shivi/calm_seafoam',autofocus=True,
|
|
@@ -169,6 +170,7 @@ chat_interface = gr.ChatInterface(
|
|
| 169 |
# Gradio Web Interface
|
| 170 |
with gr.Blocks(css=custom_css,theme='shivi/calm_seafoam',fill_height=True) as demo:
|
| 171 |
chat_interface.render()
|
|
|
|
| 172 |
# gr.Markdown(LICENSE)
|
| 173 |
|
| 174 |
|
|
|
|
| 78 |
text = re.sub(r'\[.*?\](?<!Answer: )', '', text)
|
| 79 |
|
| 80 |
return text
|
| 81 |
+
|
| 82 |
custom_css = """
|
| 83 |
body, input, button, textarea, label {
|
| 84 |
font-family: Arial, sans-serif;
|
|
|
|
| 161 |
stop_btn=None,
|
| 162 |
examples=[
|
| 163 |
["Can you explain briefly to me what is the Python programming language?"],
|
| 164 |
+
["Could you please provide an explanation about Data Science?"],
|
| 165 |
["Could you explain what a URL is?"]
|
| 166 |
],
|
| 167 |
theme='shivi/calm_seafoam',autofocus=True,
|
|
|
|
| 170 |
# Gradio Web Interface
|
| 171 |
with gr.Blocks(css=custom_css,theme='shivi/calm_seafoam',fill_height=True) as demo:
|
| 172 |
chat_interface.render()
|
| 173 |
+
|
| 174 |
# gr.Markdown(LICENSE)
|
| 175 |
|
| 176 |
|