Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ history = []
|
|
8 |
|
9 |
def generateResponse(prompt, history):
|
10 |
formattedPrompt = f"<s>[INST] {prompt} [/INST]"
|
11 |
-
response = model(formattedPrompt, max_new_tokens=1024
|
12 |
history.append([prompt, response])
|
13 |
return response
|
14 |
|
@@ -28,5 +28,5 @@ UI = gr.ChatInterface(
|
|
28 |
clear_btn="Clear chat"
|
29 |
)
|
30 |
|
31 |
-
UI.queue(max_size=10, concurrency_count=
|
32 |
UI.launch()
|
|
|
8 |
|
9 |
def generateResponse(prompt, history):
|
10 |
formattedPrompt = f"<s>[INST] {prompt} [/INST]"
|
11 |
+
response = model(formattedPrompt, max_new_tokens=1024)
|
12 |
history.append([prompt, response])
|
13 |
return response
|
14 |
|
|
|
28 |
clear_btn="Clear chat"
|
29 |
)
|
30 |
|
31 |
+
UI.queue(max_size=10, concurrency_count=16)
|
32 |
UI.launch()
|