Spaces:
Paused
Paused
ranamhamoud
commited on
Commit
โข
5b5c9e4
1
Parent(s):
cf2987e
Update app.py
Browse files
app.py
CHANGED
@@ -85,55 +85,55 @@ def generate(
|
|
85 |
yield "".join(outputs)
|
86 |
|
87 |
|
88 |
-
chat_interface = gr.ChatInterface(
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
)
|
137 |
|
138 |
with gr.Blocks(css="style.css") as demo:
|
139 |
gr.Markdown(DESCRIPTION)
|
|
|
85 |
yield "".join(outputs)
|
86 |
|
87 |
|
88 |
+
# chat_interface = gr.ChatInterface(
|
89 |
+
# fn=generate,
|
90 |
+
# additional_inputs=[
|
91 |
+
# gr.Textbox(label="System prompt", lines=6),
|
92 |
+
# gr.Slider(
|
93 |
+
# label="Max new tokens",
|
94 |
+
# minimum=1,
|
95 |
+
# maximum=MAX_MAX_NEW_TOKENS,
|
96 |
+
# step=1,
|
97 |
+
# value=DEFAULT_MAX_NEW_TOKENS,
|
98 |
+
# ),
|
99 |
+
# gr.Slider(
|
100 |
+
# label="Temperature",
|
101 |
+
# minimum=0.1,
|
102 |
+
# maximum=4.0,
|
103 |
+
# step=0.1,
|
104 |
+
# value=0.6,
|
105 |
+
# ),
|
106 |
+
# gr.Slider(
|
107 |
+
# label="Top-p (nucleus sampling)",
|
108 |
+
# minimum=0.05,
|
109 |
+
# maximum=1.0,
|
110 |
+
# step=0.05,
|
111 |
+
# value=0.9,
|
112 |
+
# ),
|
113 |
+
# gr.Slider(
|
114 |
+
# label="Top-k",
|
115 |
+
# minimum=1,
|
116 |
+
# maximum=1000,
|
117 |
+
# step=1,
|
118 |
+
# value=50,
|
119 |
+
# ),
|
120 |
+
# gr.Slider(
|
121 |
+
# label="Repetition penalty",
|
122 |
+
# minimum=1.0,
|
123 |
+
# maximum=2.0,
|
124 |
+
# step=0.05,
|
125 |
+
# value=1.2,
|
126 |
+
# ),
|
127 |
+
# ],
|
128 |
+
# stop_btn=None,
|
129 |
+
# examples=[
|
130 |
+
# ["Hello there! How are you doing?"],
|
131 |
+
# ["Can you explain briefly to me what is the Python programming language?"],
|
132 |
+
# ["Explain the plot of Cinderella in a sentence."],
|
133 |
+
# ["How many hours does it take a man to eat a Helicopter?"],
|
134 |
+
# ["Write a 100-word article on 'Benefits of Open-Source in AI research'"],
|
135 |
+
# ],
|
136 |
+
# )
|
137 |
|
138 |
with gr.Blocks(css="style.css") as demo:
|
139 |
gr.Markdown(DESCRIPTION)
|