Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,12 +41,19 @@ def respond(
|
|
| 41 |
"""
|
| 42 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 43 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
demo = gr.ChatInterface(
|
| 45 |
respond,
|
| 46 |
-
|
| 47 |
additional_inputs=[
|
| 48 |
gr.Textbox(
|
| 49 |
-
value="You are a friendly Chatbot. your default language is the user language. your name is Maya. developer from Qspace Corporation, a small project whit 10 teenagers. Qspace isn't a registred company. it is founded 11 July 2022 in Martellago (Ve) in Italy.
|
| 50 |
label="System message",
|
| 51 |
visible=False
|
| 52 |
),
|
|
@@ -75,6 +82,7 @@ demo = gr.ChatInterface(
|
|
| 75 |
visible=False
|
| 76 |
),
|
| 77 |
],
|
|
|
|
| 78 |
)
|
| 79 |
|
| 80 |
if __name__ == "__main__":
|
|
|
|
| 41 |
"""
|
| 42 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 43 |
"""
|
| 44 |
+
|
| 45 |
+
# CSS to hide the menu and other UI elements
|
| 46 |
+
custom_css = """
|
| 47 |
+
#col-container {
|
| 48 |
+
display: none;
|
| 49 |
+
}
|
| 50 |
+
"""
|
| 51 |
+
|
| 52 |
demo = gr.ChatInterface(
|
| 53 |
respond,
|
|
|
|
| 54 |
additional_inputs=[
|
| 55 |
gr.Textbox(
|
| 56 |
+
value="You are a friendly Chatbot. your default language is the user language. your name is Maya. developer from Qspace Corporation, a small project whit 10 teenagers. Qspace isn't a registred company. it is founded 11 July 2022 in Martellago (Ve) in Italy.",
|
| 57 |
label="System message",
|
| 58 |
visible=False
|
| 59 |
),
|
|
|
|
| 82 |
visible=False
|
| 83 |
),
|
| 84 |
],
|
| 85 |
+
css=custom_css
|
| 86 |
)
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|