Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
import time
|
4 |
import ctypes #to run on C api directly
|
5 |
import llama_cpp
|
@@ -26,7 +26,7 @@ def generate_text(input_text, history):
|
|
26 |
history =["init",input_text_with_history]
|
27 |
return response
|
28 |
for out in output:
|
29 |
-
print(
|
30 |
|
31 |
demo = gr.ChatInterface(generate_text)
|
32 |
demo.queue(concurrency_count=1, max_size=5)
|
|
|
1 |
import gradio as gr
|
2 |
+
import json
|
3 |
import time
|
4 |
import ctypes #to run on C api directly
|
5 |
import llama_cpp
|
|
|
26 |
history =["init",input_text_with_history]
|
27 |
return response
|
28 |
for out in output:
|
29 |
+
print(json.dump(out, indent=2))
|
30 |
|
31 |
demo = gr.ChatInterface(generate_text)
|
32 |
demo.queue(concurrency_count=1, max_size=5)
|