Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,15 +110,25 @@ def respond(
|
|
| 110 |
|
| 111 |
# Gradio Chat Interface with Models
|
| 112 |
demo = gr.ChatInterface(
|
| 113 |
-
respond,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
additional_inputs=[
|
| 115 |
-
gr.Slider(minimum=1, maximum=2048, value=
|
| 116 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
| 117 |
-
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="
|
| 118 |
],
|
| 119 |
-
theme=
|
| 120 |
)
|
| 121 |
|
| 122 |
if __name__ == "__main__":
|
| 123 |
-
demo.launch()
|
| 124 |
|
|
|
|
| 110 |
|
| 111 |
# Gradio Chat Interface with Models
|
| 112 |
demo = gr.ChatInterface(
|
| 113 |
+
fn=respond,
|
| 114 |
+
type="messages",
|
| 115 |
+
chatbot=gr.Chatbot(
|
| 116 |
+
type="messages",
|
| 117 |
+
label="🟢H🟢",
|
| 118 |
+
avatar_images=(
|
| 119 |
+
"https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-131420.png",
|
| 120 |
+
"https://huggingface.co/spaces/TejAndrewsACC/ConversePTG/resolve/main/IMG_1120.png"
|
| 121 |
+
),
|
| 122 |
+
placeholder="🟢-Hi, I'm H-🟢",
|
| 123 |
+
),
|
| 124 |
additional_inputs=[
|
| 125 |
+
gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="📏Maximum Response Length📏"),
|
| 126 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="👨🎨🎨Creativity🎨👨🎨"),
|
| 127 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="🧠⚡️Neural Activity⚡️🧠")
|
| 128 |
],
|
| 129 |
+
theme="gstaff/xkcd",
|
| 130 |
)
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
+
demo.launch(share=True)
|
| 134 |
|