Spaces:
Runtime error
Runtime error
fix: no prompt and just generate the text
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def generate(
|
|
163 |
return output
|
164 |
|
165 |
additional_inputs=[
|
166 |
-
gr.Textbox("
|
167 |
gr.Slider(
|
168 |
label="Temperature",
|
169 |
value=0.95,
|
@@ -226,7 +226,7 @@ chat_interface = gr.ChatInterface(
|
|
226 |
generate,
|
227 |
chatbot=chatbot,
|
228 |
textbox=textbox,
|
229 |
-
examples=examples,
|
230 |
additional_inputs=additional_inputs,
|
231 |
cache_examples=False,
|
232 |
)
|
|
|
163 |
return output
|
164 |
|
165 |
additional_inputs=[
|
166 |
+
gr.Textbox("شعر:@", label="Optional system prompt"), #<|endoftext|>
|
167 |
gr.Slider(
|
168 |
label="Temperature",
|
169 |
value=0.95,
|
|
|
226 |
generate,
|
227 |
chatbot=chatbot,
|
228 |
textbox=textbox,
|
229 |
+
#examples=examples,
|
230 |
additional_inputs=additional_inputs,
|
231 |
cache_examples=False,
|
232 |
)
|