Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,17 +106,15 @@ h1, h2 {
|
|
106 |
iface = gr.Interface(
|
107 |
fn=get_response,
|
108 |
inputs=[
|
109 |
-
gr.Textbox(label="Your message:", lines=5, placeholder="Ask me anything...", show_label=True,
|
110 |
-
style={'background-color': '#111111', 'color': '#00FF00', 'border': '1px solid #00FF00'}),
|
111 |
gr.Slider(label="Temperature", minimum=0.1, maximum=1.0, step=0.1, value=0.7),
|
112 |
gr.Slider(label="Top p", minimum=0.1, maximum=1.0, step=0.1, value=0.9),
|
113 |
gr.Slider(label="Top k", minimum=1, maximum=100, step=1, value=50),
|
114 |
gr.Slider(label="Max length", minimum=10, maximum=1000, step=10, value=250),
|
115 |
],
|
116 |
outputs=[
|
117 |
-
gr.TextArea(label="AI Response:", lines=10,
|
118 |
-
|
119 |
-
gr.HTML(elem_id="analysis", style={'color': '#00FF00'}),
|
120 |
],
|
121 |
title="NVIDIA AI Chat",
|
122 |
description="Engage in a conversation with our advanced AI model. Customize the response using various parameters.",
|
|
|
106 |
iface = gr.Interface(
|
107 |
fn=get_response,
|
108 |
inputs=[
|
109 |
+
gr.Textbox(label="Your message:", lines=5, placeholder="Ask me anything...", show_label=True),
|
|
|
110 |
gr.Slider(label="Temperature", minimum=0.1, maximum=1.0, step=0.1, value=0.7),
|
111 |
gr.Slider(label="Top p", minimum=0.1, maximum=1.0, step=0.1, value=0.9),
|
112 |
gr.Slider(label="Top k", minimum=1, maximum=100, step=1, value=50),
|
113 |
gr.Slider(label="Max length", minimum=10, maximum=1000, step=10, value=250),
|
114 |
],
|
115 |
outputs=[
|
116 |
+
gr.TextArea(label="AI Response:", lines=10),
|
117 |
+
gr.HTML(elem_id="analysis"),
|
|
|
118 |
],
|
119 |
title="NVIDIA AI Chat",
|
120 |
description="Engage in a conversation with our advanced AI model. Customize the response using various parameters.",
|