Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,29 @@ theme = gr.themes.Soft(
|
|
9 |
font="Rubik" # Make sure "Rubik" is a valid font
|
10 |
)
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Create Gradio blocks with custom CSS for enhanced UI
|
13 |
with gr.Blocks(theme=theme, title="RocketGPT - AI-Powered Chatbot") as demo:
|
14 |
# Define individual tabs
|
|
|
9 |
font="Rubik" # Make sure "Rubik" is a valid font
|
10 |
)
|
11 |
|
12 |
+
# Create Gradio blocks with custom CSS for enhanced UI
|
13 |
+
with gr.Blocks(
|
14 |
+
css="""
|
15 |
+
.gradio-container {background-color: #f0f4f8; padding: 20px;}
|
16 |
+
h1, h2, h3, h4, h5, h6 {color: #4a5568;}
|
17 |
+
.chat-message {background-color: #edf2f7; border-radius: 8px; padding: 10px;}
|
18 |
+
.gradio-container .avatar-container {height: 40px; width: 40px; border-radius: 50%; overflow: hidden;}
|
19 |
+
#duplicate-button {margin: auto; color: white; background: #2d3748; border-radius: 100vh; padding: 8px 16px;}
|
20 |
+
.tab-nav-button {background-color: #e2e8f0; border-radius: 8px;}
|
21 |
+
.tab-nav-button.selected {background-color: #cbd5e0;}
|
22 |
+
""",
|
23 |
+
) as chat:
|
24 |
+
gr.Markdown("### Please note that only one image can be created at a time. To generate multiple images, consider using an Image Generator tool.")
|
25 |
+
gr.ChatInterface(
|
26 |
+
fn=model_inference,
|
27 |
+
chatbot=chatbot,
|
28 |
+
examples=EXAMPLES,
|
29 |
+
multimodal=True,
|
30 |
+
cache_examples=False,
|
31 |
+
autofocus=False,
|
32 |
+
concurrency_limit=10,
|
33 |
+
)
|
34 |
+
|
35 |
# Create Gradio blocks with custom CSS for enhanced UI
|
36 |
with gr.Blocks(theme=theme, title="RocketGPT - AI-Powered Chatbot") as demo:
|
37 |
# Define individual tabs
|