Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio.themes import Interstellar # Correct import
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
5 |
"""
|
@@ -44,6 +43,7 @@ def respond(
|
|
44 |
"""
|
45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
46 |
"""
|
|
|
47 |
demo = gr.ChatInterface(
|
48 |
respond,
|
49 |
additional_inputs=[
|
@@ -58,7 +58,7 @@ demo = gr.ChatInterface(
|
|
58 |
label="Top-p (nucleus sampling)",
|
59 |
),
|
60 |
],
|
61 |
-
theme=Interstellar
|
62 |
)
|
63 |
|
64 |
if __name__ == "__main__":
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
"""
|
|
|
43 |
"""
|
44 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
45 |
"""
|
46 |
+
# Use the custom theme by setting the `theme` parameter as a string
|
47 |
demo = gr.ChatInterface(
|
48 |
respond,
|
49 |
additional_inputs=[
|
|
|
58 |
label="Top-p (nucleus sampling)",
|
59 |
),
|
60 |
],
|
61 |
+
theme="ParityError/Interstellar" # Apply the custom theme
|
62 |
)
|
63 |
|
64 |
if __name__ == "__main__":
|