Spaces:
Sleeping
Sleeping
Update gradio_app.py
Browse files- gradio_app.py +19 -0
gradio_app.py
CHANGED
|
@@ -20,6 +20,25 @@ iface = gr.Interface(
|
|
| 20 |
description="Chat with an AI-powered bot based on a pre-trained model." # A short description
|
| 21 |
)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Step 4: Launch the interface
|
| 24 |
if __name__ == "__main__":
|
| 25 |
iface.launch()
|
|
|
|
| 20 |
description="Chat with an AI-powered bot based on a pre-trained model." # A short description
|
| 21 |
)
|
| 22 |
|
| 23 |
+
iface.launch(inline=True, share=True, css="""
|
| 24 |
+
body {
|
| 25 |
+
background-color: #f0f0f0; /* Change the background color */
|
| 26 |
+
}
|
| 27 |
+
.container {
|
| 28 |
+
max-width: 800px; /* Limit the width of the container */
|
| 29 |
+
margin: auto;
|
| 30 |
+
padding: 20px;
|
| 31 |
+
}
|
| 32 |
+
.output_text {
|
| 33 |
+
color: blue; /* Change the color of the output text */
|
| 34 |
+
font-size: 1.2em;
|
| 35 |
+
}
|
| 36 |
+
.input_text {
|
| 37 |
+
border: 2px solid #007bff; /* Custom border for the input */
|
| 38 |
+
border-radius: 4px;
|
| 39 |
+
}
|
| 40 |
+
""")
|
| 41 |
+
|
| 42 |
# Step 4: Launch the interface
|
| 43 |
if __name__ == "__main__":
|
| 44 |
iface.launch()
|